haproxy/Makefile
2005-12-17 12:21:26 +01:00

24 lines
386 B
Makefile

CC = gcc
LD = gcc
COPTS = -O2 -g -DSTATTIME=0
LIBS =
# to compile under solaris, uncomment these two lines
#COPTS = -O2 -fomit-frame-pointer -DSOLARIS
#LIBS = -lnsl -lsocket
CFLAGS = -Wall $(COPTS)
LDFLAGS = -g
all: haproxy
haproxy: haproxy.o
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -vf *.[oas] *~ core haproxy test nohup.out gmon.out