close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
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 := ogAdmServer |
|---|
| 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 | LBIT := $(shell getconf LONG_BIT) |
|---|
| 16 | ifeq ($(LBIT), 64) |
|---|
| 17 | LDFLAGS := -L/usr/lib64 -L/usr/lib64/mysql -lpthread -lmysqlclient |
|---|
| 18 | else |
|---|
| 19 | LDFLAGS := -L/usr/lib -L/usr/lib/mysql -lpthread -lmysqlclient |
|---|
| 20 | endif |
|---|
| 21 | |
|---|
| 22 | # Ficheros objetos |
|---|
| 23 | OBJS := ../../Includes/Database.o sources/ogAdmServer.o |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | all: $(PROYECTO) |
|---|
| 27 | |
|---|
| 28 | $(PROYECTO): $(OBJS) |
|---|
| 29 | g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO) |
|---|
| 30 | # strip $(PROYECTO) # Optimizacion |
|---|
| 31 | |
|---|
| 32 | install: $(PROYECTO) |
|---|
| 33 | cp $(PROYECTO) $(INSTALL_DIR)/sbin |
|---|
| 34 | cp $(PROYECTO).cfg $(INSTALL_DIR)/etc |
|---|
| 35 | |
|---|
| 36 | clean: |
|---|
| 37 | rm -f $(PROYECTO) $(OBJS) |
|---|
| 38 | |
|---|
| 39 | uninstall: clean |
|---|
| 40 | rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg |
|---|
| 41 | |
|---|
| 42 | sources/%.o: sources/%.cpp |
|---|
| 43 | g++ $(CPPFLAGS) -c -o"$@" "$<" |
|---|
| 44 | |
|---|
| 45 | sources/%.o: sources/%.c |
|---|
| 46 | gcc $(CFLAGS) -c -o"$@" "$<" |
|---|
| 47 | |
|---|
| 48 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.