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