-
Notifications
You must be signed in to change notification settings - Fork 0
/
XMakefile.inc
80 lines (67 loc) · 1.95 KB
/
XMakefile.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* XMakefile.inc
*/
.set VERS 6
.set SUBREV CUR-20170901-00
/* .set SUBREV REL */
.set DLIB "$(BD)obj/libdiablo.a"
.set FLIB "$(BD)obj/libfilter.a"
.set RLIB "$(BD)obj/libdreader.a"
.set CDEFINES '-DVERS="$(VERS)"' '-DSUBREV="$(SUBREV)"'
#if __GNUC__
.set CFLAGS -g -O2 -Wall -Wstrict-prototypes "-I$(BD)" $(CDEFINES)
.set LSTATIC
.set CC gcc
#else
.set CFLAGS -g -O "-I$(BD)." $(CDEFINES)
.set LSTATIC
.set CC cc
#endif
.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lutil -lm
.set DR_LFLAGS ${LFLAGS}
.set IDIR /news
.set MDIR /news/man
.set INSTALL install
/*
* Add -lcrypto or -ldes if you enable any of the des encryption options in lib/vendor.h
*/
#ifdef __FreeBSD__
.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lutil -lm -lmd -lradius -lz -lcrypto
#endif
#ifdef __APPLE_CC__
.set CFLAGS -g -O2 -Wall -Wstrict-prototypes "-I$(BD)" "-I/usr/include/openssl" $(CDEFINES)
.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lutil -lm -lcrypto -lssl -lz
.set LSTATIC
#endif
#ifdef __hpux
.set LFLAGS "-L$(BD)obj" -lfilter -ldiablo -lm
#endif
#ifdef __linux__
.set CFLAGS -g -O2 -Wall -Wstrict-prototypes "-I$(BD)" $(CDEFINES) -D_FILE_OFFSET_BITS=64
.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lz -lm
.set DR_LFLAGS -L$(BD)obj -ldiablo -ldb -lz -lm -lcrypto
#endif
#ifdef __osf__
.set CC cc
.set CFLAGS -g3 -O2 "-I$(BD)" $(CDEFINES)
.set LFLAGS "-L$(BD)obj" -lfilter -ldiablo -lm -lrt
.set LSTATIC -non_shared
.set INSTALL installbsd
#endif
#ifdef sun
/*
* some sun systems use -lsocket, some don't. complain to sun
*
* Add -lldap to end of LFLAGS if you have LDAP_ENABLED
*/
.set LFLAGS "-L$(BD)obj" -lfilter -ldiablo -lm -lnsl -lsocket -lposix4
.set CFLAGS -g -O2 -Wall -Wstrict-prototypes "-I$(BD)" $(CDEFINES) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
/* Sun cc compiler for 64-bit code */
/* .set CFLAGS -g -xs -xtarget=ultra -xarch=v9 -O "-I$(BD)." $(CDEFINES) */
.set LSTATIC
.set INSTALL /usr/ucb/install
#endif
#ifdef _AIX
.set INSTALL installbsd
#endif
.set DIST /news