3proxy/Makefile.FreeBSD

40 lines
1.1 KiB
Makefile
Raw Normal View History

2017-02-04 21:54:07 +08:00
#
# 3 proxy Makefile for GCC/Unix
#
# remove -DNOODBC from CFLAGS and add -lodbc to LDFLAGS to compile with ODBC
# library support. Add -DSAFESQL for poorely written ODBC library / drivers.
2018-04-22 03:39:55 +08:00
BUILDDIR = ../bin/
2021-10-30 00:25:58 +08:00
CC ?= cc
2017-02-04 21:54:07 +08:00
2021-10-30 00:25:58 +08:00
CFLAGS += -c -fno-strict-aliasing -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
2017-02-04 21:54:07 +08:00
COUT = -o
LN ?= ${CC}
2021-10-30 00:25:58 +08:00
LDFLAGS += -pthread -fno-strict-aliasing
# -lpthreads may be reuiured on some platforms instead of -pthreads
2017-02-04 21:54:07 +08:00
# -ldl or -lld may be required for some platforms
2020-08-06 21:19:55 +08:00
DCFLAGS = -fPIC
2017-02-04 21:54:07 +08:00
DLFLAGS = -shared
DLSUFFICS = .so
LIBS =
LIBSPREFIX = -l
LIBSSUFFIX =
LNOUT = -o
EXESUFFICS =
OBJSUFFICS = .o
DEFINEOPTION = -D
COMPFILES = *~
REMOVECOMMAND = rm -f
2021-01-22 23:17:09 +08:00
AFTERCLEAN = (find . -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -perm +111 -delete) || true
2017-02-04 21:54:07 +08:00
TYPECOMMAND = cat
COMPATLIBS =
2017-10-30 22:29:03 +08:00
MAKEFILE = Makefile.FreeBSD
PLUGINS = StringsPlugin TrafficPlugin PCREPlugin PamAuth TransparentPlugin
2017-02-04 21:54:07 +08:00
include Makefile.inc
DESTDIR =
2017-02-04 21:54:07 +08:00
allplugins:
@list='$(PLUGINS)'; for p in $$list; do cp Makefile Makefile.var plugins/$$p; cd plugins/$$p ; make ; cd ../.. ; done