Debian Codegraph @

makefiles/Makefile.mklinux

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