-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile2
More file actions
executable file
·28 lines (20 loc) · 774 Bytes
/
Makefile2
File metadata and controls
executable file
·28 lines (20 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
DEBUG = -g -DDEBUG -O2
OPT = -funroll-loops -D__USE_STRING_INLINES -fhosted #-DLOG_USE_SYSLOG
OPT += -DEPOLL_MODE
CC = gcc
BINS = AsynServ
SRCS = main.c dll.c daemon.c util.c shmq.c net.c net_if.c service.c bindconf.c mcast.c
INCL += -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include/ -I./ -I../
CFLAGS = -Wall $(INCL) -MMD $(DEBUG) -D_REENTRANT -D_GNU_SOURCE $(OPT)
LINKDIR = -L../libtaomee
LIBS += -lxml2 -ldl -rdynamic -lm -lglib-2.0 -lssl -ltaomee
all: $(BINS)
%.o: %.c Makefile
$(CC) $(CFLAGS) -c -o $@ $<
@-mv -f $*.d .dep.$@
$(BINS): $(SRCS:.c=.o)
$(CC) $(LDFLAGS) -o $@ $^ $(LINKDIR) $(LIBS)
# rm ../bin/$(BINS); mv $(BINS) ../bin/
clean:
@-rm -f *.o *.po *.so *.d .dep.* $(BINS) core
-include /dev/null $(wildcard .dep.*)