haproxy/Makefile

36 lines
625 B
Makefile
Raw Normal View History

2005-12-17 11:21:26 +00:00
CC = gcc
LD = gcc
# This is for Linux 2.4
COPTS.linux = -O2
LIBS.linux =
2005-12-17 11:21:26 +00:00
# This is for solaris 8
COPTS.solaris = -O2 -fomit-frame-pointer -DSOLARIS -DHAVE_STRLCPY
LIBS.solaris = -lnsl -lsocket
2005-12-17 11:21:26 +00:00
# Select target OS. TARGET must match a system for which COPTS and LIBS are
# correctly defined above.
TARGET = linux
#TARGET = solaris
DEBUG =
#DEBUG = -g
COPTS=$(COPTS.$(TARGET))
LIBS=$(LIBS.$(TARGET))
CFLAGS = -Wall $(COPTS) -DSTATTIME=0
2005-12-17 11:21:26 +00:00
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