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