| 1 |
# |
| 2 |
# FreeBSD Protean Makefile definitions |
| 3 |
# |
| 4 |
|
| 5 |
# 1) System specific additional libraries, include paths, etc |
| 6 |
# (Where to find X11 libraries, etc) |
| 7 |
# |
| 8 |
SYSTEM_INCLUDES = |
| 9 |
SYSTEM_LDFLAGS = |
| 10 |
SYSTEM_LIBS = -pthread |
| 11 |
##SYSTEM_LIBS = -lc_r |
| 12 |
|
| 13 |
# 2) System specific capabilities |
| 14 |
# Must choose appropriate for the following: |
| 15 |
# |
| 16 |
# A) -DHAVE_CUSERID (preferred) or -DHAVE_GETLOGIN for cuserid() or getlogin() |
| 17 |
# functions to obtain user's login name (We may change this to getpwd() |
| 18 |
# if that is better across different platforms and login environments) |
| 19 |
# |
| 20 |
# B) -DHAVE_LOCKF (preferred) or -D_LOCKF for lockf() or flock() file locking |
| 21 |
# functions to attempt exclusive lock on writing to files |
| 22 |
# |
| 23 |
# C) Specify -DHAVE_DIRFD if you system provides the "dirfd()" function |
| 24 |
# (Most don't have it defined ... but some do) |
| 25 |
# |
| 26 |
# D) Optionally specify -DHAVE_ASSERT if your system has a built-in ASSERT() |
| 27 |
# routine. |
| 28 |
# |
| 29 |
# E) The PROTOLIB code's use of offset pointers requires special treatment |
| 30 |
# for some different compilers. Set -DUSE_INHERITANCE for some |
| 31 |
# to keep some compilers (gcc 2.7.2) happy. |
| 32 |
# |
| 33 |
# F) Some systems (SOLARIS/SUNOS) have a few gotchas which require |
| 34 |
# some #ifdefs to avoid compiler warnings ... so you might need |
| 35 |
# to specify -DSOLARIS or -DSUNOS depending on your OS. |
| 36 |
# |
| 37 |
# G) Uncomment this if you have the NRL IPv6+IPsec software |
| 38 |
#DNETSEC = -DNETSEC -I/usr/inet6/include |
| 39 |
# |
| 40 |
# (We export these for other Makefiles as needed) |
| 41 |
# |
| 42 |
|
| 43 |
SYSTEM_HAVES = -DHAVE_IPV6 -DHAVE_ASSERT -DHAVE_GETLOGIN -DHAVE_FLOCK -DHAVE_DIRFD $(DNETSEC) |
| 44 |
|
| 45 |
SYSTEM_SRC = ../src/bsd/bsdRouteMgr.cpp ../src/bsd/bsdNet.cpp ../src/unix/unixNet.cpp |
| 46 |
|
| 47 |
SYSTEM_SRC_EX = ../src/unix/bpfCap.cpp ../src/bsd/bsdDetour.cpp |
| 48 |
|
| 49 |
SYSTEM = freebsd |
| 50 |
CC = c++ |
| 51 |
SYSTEM_CFLAGS = -Wall -Wcast-align -pedantic -fPIC |
| 52 |
SYSTEM_SOFLAGS = -shared |
| 53 |
SYSTEM_SOEXT = so |
| 54 |
RANLIB = ranlib |
| 55 |
AR = ar |
| 56 |
|
| 57 |
include Makefile.common |