willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 1 | CC = gcc |
2 | LD = gcc | ||||
3 | |||||
4 | COPTS = -O2 -g -DSTATTIME=0 | ||||
5 | LIBS = | ||||
6 | |||||
7 | # to compile under solaris, uncomment these two lines | ||||
8 | #COPTS = -O2 -fomit-frame-pointer -DSOLARIS | ||||
9 | #LIBS = -lnsl -lsocket | ||||
10 | |||||
11 | CFLAGS = -Wall $(COPTS) | ||||
12 | LDFLAGS = -g | ||||
13 | |||||
14 | all: haproxy | ||||
15 | |||||
16 | haproxy: haproxy.o | ||||
17 | $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) | ||||
18 | |||||
19 | %.o: %.c | ||||
20 | $(CC) $(CFLAGS) -c -o $@ $< | ||||
21 | |||||
22 | clean: | ||||
23 | rm -vf *.[oas] *~ core haproxy test nohup.out gmon.out |