configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change
on this file since 9f4584f was
bfa70ab1,
checked in by OpenGnSys Support Team <soporte-og@…>, 6 years ago
|
#884 do not strip off symbols
Nor use -O3 since this generates code that is harder to debug.
Compile binary that can be run inside valgrind for better debugging.
|
-
Property mode set to
100644
|
File size:
827 bytes
|
Line | |
---|
1 | # makefile |
---|
2 | |
---|
3 | # Nombre del proyecto |
---|
4 | PROYECTO := ogAdmAgent |
---|
5 | |
---|
6 | # Directorio de instalación |
---|
7 | INSTALL_DIR := /opt/opengnsys |
---|
8 | |
---|
9 | # Opciones de compilacion |
---|
10 | CFLAGS := $(shell mysql_config --cflags) |
---|
11 | CFLAGS += -g -Wall -I../../Includes |
---|
12 | CPPFLAGS := $(CFLAGS) |
---|
13 | |
---|
14 | # Opciones de linkado |
---|
15 | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lpthread |
---|
16 | |
---|
17 | # Ficheros objetos |
---|
18 | OBJS := ../../Includes/Database.o sources/ogAdmAgent.o |
---|
19 | |
---|
20 | |
---|
21 | all: $(PROYECTO) |
---|
22 | |
---|
23 | $(PROYECTO): $(OBJS) |
---|
24 | g++ $(LDFLAGS) $(OBJS) -o $(PROYECTO) |
---|
25 | |
---|
26 | install: $(PROYECTO) |
---|
27 | cp $(PROYECTO) $(INSTALL_DIR)/sbin |
---|
28 | cp $(PROYECTO).cfg $(INSTALL_DIR)/etc |
---|
29 | |
---|
30 | clean: |
---|
31 | rm -f $(PROYECTO) $(OBJS) |
---|
32 | |
---|
33 | uninstall: clean |
---|
34 | rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg |
---|
35 | |
---|
36 | sources/%.o: sources/%.cpp |
---|
37 | g++ $(CPPFLAGS) -c -o"$@" "$<" |
---|
38 | |
---|
39 | sources/%.o: sources/%.c |
---|
40 | gcc $(CFLAGS) -c -o"$@" "$<" |
---|
41 | |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.