Debian Codegraph @

makefiles/Makefile.freebsd

raw ◀ ▶
2 Debian patches touch this file
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 = -Wl,--as-needed
•10 SYSTEM_LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
11 SYSTEM_LIBS = -pthread
12 ####SYSTEM_LIBS = -lc_r
13
14 # 2) System specific capabilities
15 # Must choose appropriate for the following:
16 #
17 # A) -DHAVE_CUSERID (preferred) or -DHAVE_GETLOGIN for cuserid() or getlogin()
18 # functions to obtain user's login name (We may change this to getpwd()
19 # if that is better across different platforms and login environments)
20 #
21 # B) -DHAVE_LOCKF (preferred) or -D_LOCKF for lockf() or flock() file locking
22 # functions to attempt exclusive lock on writing to files
23 #
24 # C) Specify -DHAVE_DIRFD if you system provides the "dirfd()" function
25 # (Most don't have it defined ... but some do)
26 #
27 # D) Optionally specify -DHAVE_ASSERT if your system has a built-in ASSERT()
28 # routine.
29 #
30 # E) Some systems (SOLARIS/SUNOS) have a few gotchas which require
31 # some #ifdefs to avoid compiler warnings ... so you might need
32 # to specify -DSOLARIS or -DSUNOS depending on your OS.
33 #
34 # F) Uncomment this if you have the NRL IPv6+IPsec software
35 #DNETSEC = -DNETSEC -I/usr/inet6/include
36 #
37 # (We export these for other Makefiles as needed)
38 #
39
40 SYSTEM_HAVES = -DHAVE_IPV6 -DHAVE_ASSERT -DHAVE_GETLOGIN -DHAVE_FLOCK -DHAVE_DIRFD $(DNETSEC)
41
42 SYSTEM = freebsd
43 CC = g++
44 RANLIB = ranlib
45 AR = ar
46
47 include Makefile.common