mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 13:17:16 +00:00
24 lines
386 B
Makefile
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
|