918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | # makefile |
---|
2 | |
---|
3 | # Nombre del proyecto |
---|
4 | PROYECTO := ogAdmClient |
---|
5 | |
---|
6 | # Directorios y librerias |
---|
7 | DIRS := |
---|
8 | LIBS := -static |
---|
9 | |
---|
10 | # Opciones de compilacion |
---|
11 | OPCS := -O0 -g -Wall # Depuracion |
---|
12 | #OPCS := -O3 -Wall # Optimizacion |
---|
13 | |
---|
14 | # Ficheros objetos |
---|
15 | OBJS := sources/ogAdmClient.o |
---|
16 | |
---|
17 | |
---|
18 | all: $(PROYECTO) |
---|
19 | |
---|
20 | $(PROYECTO): $(OBJS) |
---|
21 | g++ $(DIRS) $(LIBS) $(OBJS) -o $(PROYECTO) |
---|
22 | # strip $(PROYECTO) # Optimizacion |
---|
23 | |
---|
24 | clean: |
---|
25 | rm $(PROYECTO) $(OBJS) |
---|
26 | |
---|
27 | sources/%.o: sources/%.cpp |
---|
28 | g++ $(OPCS) -c -o"$@" "$<" |
---|
29 | |
---|
30 | sources/%.o: sources/%.c |
---|
31 | gcc $(OPCS) -c -o"$@" "$<" |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.