918-git-images-111dconfigure-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-instalacion
opengnsys-1.1.1b
Last change
on this file since f3499a3 was
ab71ca8,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#967 rename .cpp to .c
This actually is C code, use the gcc compiler instead.
|
-
Property mode set to
100644
|
File size:
754 bytes
|
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 := $(shell mysql_config --cflags) |
---|
11 | CFLAGS += -g -Wall -I../../Includes |
---|
12 | |
---|
13 | # Opciones de linkado |
---|
14 | LDFLAGS := -Wl,--no-as-needed $(shell mysql_config --libs) -lev -ljansson -ldbi |
---|
15 | |
---|
16 | # Ficheros objetos |
---|
17 | OBJS := sources/ogAdmServer.o sources/dbi.o |
---|
18 | |
---|
19 | |
---|
20 | all: $(PROYECTO) |
---|
21 | |
---|
22 | $(PROYECTO): $(OBJS) |
---|
23 | gcc $(LDFLAGS) $(CFLAGS) $(OBJS) -o $(PROYECTO) |
---|
24 | |
---|
25 | install: $(PROYECTO) |
---|
26 | cp $(PROYECTO) $(INSTALL_DIR)/sbin |
---|
27 | cp $(PROYECTO).cfg $(INSTALL_DIR)/etc |
---|
28 | |
---|
29 | clean: |
---|
30 | rm -f $(PROYECTO) $(OBJS) |
---|
31 | |
---|
32 | uninstall: clean |
---|
33 | rm -f /usr/local/sbin/$(PROYECTO) /usr/local/etc/$(PROYECTO).cfg |
---|
34 | |
---|
35 | sources/%.o: sources/%.c |
---|
36 | gcc $(CFLAGS) -c -o"$@" "$<" |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.