-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
59 lines (45 loc) · 1 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# File: Linux serproxy makefile
#
# (C)1999 Stefano Busti
#
VERSION = `cat VERSION`
SRCS = \
main.c sio.c sock.c thread.c vlist.c cfglib.c config.c string.c \
pipe.c error.c
OBJS = \
main.o sio.o sock.o thread.o vlist.o cfglib.o config.o string.o \
pipe.c error.c
CC = gcc
ifdef DEBUG
CFLAGS = -Wall -g -D__UNIX__ -DDEBUG
else
CFLAGS = -Wall -O2 -fomit-frame-pointer -D__UNIX__
endif
ifdef USE_EF
LIBS= -lpthread -lefence
else
LIBS= -lpthread
endif
# Build the program
serproxy: $(SRCS) $(OBJS)
$(CC) $(CFLAGS) -o serproxy $(OBJS) $(LDFLAGS) $(LIBS)
install: serproxy
cp -f serproxy /usr/local/bin
clean:
rm -f *.o *~
realclean:
rm -f *.o *~ serproxy *.gz *.zip
dep:
makedepend -Y -- $(CFLAGS) -- $(SRCS) 2&>/dev/null
# DO NOT DELETE
main.o: sio.h sock.h pipe.h thread.h vlist.h cfglib.h config.h error.h
sio.o: sio.h
sock.o: sock.h
thread.o: thread.h
vlist.o: vlist.h
cfglib.o: cfglib.h
config.o: config.h cfglib.h string.h
string.o: string.h
pipe.o: pipe.h sio.h sock.h thread.h
error.o: error.h