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
Rev | Line | |
---|
[34fc87f] | 1 | # makefile |
---|
| 2 | |
---|
| 3 | # Nombre del proyecto |
---|
| 4 | PROYECTO := ogAdmServer |
---|
| 5 | |
---|
| 6 | # Opciones de compilacion |
---|
| 7 | CFLAGS := -O0 -g -Wall -I../includes # Depuracion |
---|
| 8 | #CFLAGS := -O3 -Wall # Optimizacion |
---|
| 9 | CPPFLAGS := $(CFLAGS) |
---|
| 10 | |
---|
| 11 | # Opciones de linkado |
---|
| 12 | LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient |
---|
| 13 | |
---|
| 14 | # Ficheros objetos |
---|
[dad9f34] | 15 | OBJS := ../includes/Database.o ../includes/encriptacion.o sources/ogAdmServer.o |
---|
[34fc87f] | 16 | |
---|
| 17 | |
---|
| 18 | all: $(PROYECTO) |
---|
| 19 | |
---|
| 20 | $(PROYECTO): $(OBJS) |
---|
| 21 | g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO) |
---|
| 22 | # strip $(PROYECTO) # Optimizacion |
---|
| 23 | |
---|
| 24 | install: $(PROYECTO) |
---|
| 25 | cp $(PROYECTO) /usr/local/sbin |
---|
| 26 | cp $(PROYECTO).cfg /usr/local/etc |
---|
| 27 | |
---|
| 28 | clean: |
---|
| 29 | rm -f $(PROYECTO) $(OBJS) |
---|
| 30 | |
---|
| 31 | uninstall: clean |
---|
| 32 | rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg |
---|
| 33 | |
---|
[dad9f34] | 34 | sources/%.o: sources/%.cpp |
---|
[34fc87f] | 35 | g++ $(CPPFLAGS) -c -o"$@" "$<" |
---|
| 36 | |
---|
[dad9f34] | 37 | sources/%.o: sources/%.c |
---|
[34fc87f] | 38 | gcc $(CFLAGS) -c -o"$@" "$<" |
---|
| 39 | |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.