Deleted Added
full compact
Makefile.UNIX (3229) Makefile.UNIX (13572)
1#
2# Makefile for the BOOTP programs:
3# bootpd - BOOTP server daemon
4# bootpef - BOOTP extension file builder
5# bootpgw - BOOTP gateway daemon
6# bootptest - BOOTP tester (client)
7#
8

--- 30 unchanged lines hidden (view full) ---

39DESTDIR=
40BINDIR=/usr/etc
41MANDIR=/usr/local/man
42
43CFLAGS= $(OPTDEFS) $(SYSDEFS) $(FILEDEFS) $(MOREDEFS)
44PROGS= bootpd bootpef bootpgw bootptest
45TESTS= trylook trygetif trygetea
46
1#
2# Makefile for the BOOTP programs:
3# bootpd - BOOTP server daemon
4# bootpef - BOOTP extension file builder
5# bootpgw - BOOTP gateway daemon
6# bootptest - BOOTP tester (client)
7#
8

--- 30 unchanged lines hidden (view full) ---

39DESTDIR=
40BINDIR=/usr/etc
41MANDIR=/usr/local/man
42
43CFLAGS= $(OPTDEFS) $(SYSDEFS) $(FILEDEFS) $(MOREDEFS)
44PROGS= bootpd bootpef bootpgw bootptest
45TESTS= trylook trygetif trygetea
46
47all: $(PROGS)
47all: $(PROGS) $(TESTS)
48
48
49tests: $(TESTS)
50
51system: install
52
53install: $(PROGS)
54 -for f in $(PROGS) ;\
55 do \
56 $(INSTALL) -c -s $$f $(DESTDIR)$(BINDIR) ;\
57 done
58

--- 12 unchanged lines hidden (view full) ---

71clean:
72 -rm -f core *.o
73 -rm -f $(PROGS) $(TESTS)
74
75distclean:
76 -rm -f *.BAK *.CKP *~ .emacs*
77
78#
49system: install
50
51install: $(PROGS)
52 -for f in $(PROGS) ;\
53 do \
54 $(INSTALL) -c -s $$f $(DESTDIR)$(BINDIR) ;\
55 done
56

--- 12 unchanged lines hidden (view full) ---

69clean:
70 -rm -f core *.o
71 -rm -f $(PROGS) $(TESTS)
72
73distclean:
74 -rm -f *.BAK *.CKP *~ .emacs*
75
76#
79# Handy targets for individual systems:
77# Handy targets for systems needing special treatment:
78# (Most POSIX systems should work with just "make all")
80#
81
82# DEC/OSF1 on the Alpha
83alpha:
84 $(MAKE) SYSDEFS="-DETC_ETHERS -Dint32=int -D_SOCKADDR_LEN" \
85 STRERROR=strerror.o
86
87# Control Data EP/IX 1.4.3 system, BSD 4.3 mode
88epix143:
89 $(MAKE) CC="cc -systype bsd43" \
90 SYSDEFS="-Dconst= -D_SIZE_T -DNO_UNISTD -DUSE_BFUNCS" \
91 STRERROR=strerror.o
92
93# Control Data EP/IX 2.1.1 system, SVR4 mode
94epix211:
95 $(MAKE) CC="cc -systype svr4" \
96 SYSDEFS="-DSVR4" \
97 SYSLIBS="-lsocket -lnsl"
98
79#
80
81# DEC/OSF1 on the Alpha
82alpha:
83 $(MAKE) SYSDEFS="-DETC_ETHERS -Dint32=int -D_SOCKADDR_LEN" \
84 STRERROR=strerror.o
85
86# Control Data EP/IX 1.4.3 system, BSD 4.3 mode
87epix143:
88 $(MAKE) CC="cc -systype bsd43" \
89 SYSDEFS="-Dconst= -D_SIZE_T -DNO_UNISTD -DUSE_BFUNCS" \
90 STRERROR=strerror.o
91
92# Control Data EP/IX 2.1.1 system, SVR4 mode
93epix211:
94 $(MAKE) CC="cc -systype svr4" \
95 SYSDEFS="-DSVR4" \
96 SYSLIBS="-lsocket -lnsl"
97
99# Silicon Graphics IRIX (no <sys/sockio.h>, so not SVR4)
98# IRIX 5.X (Silicon Graphics)
100irix:
99irix:
101 $(MAKE) SYSDEFS="-DSYSV -DIRIX"
100 $(MAKE) SYSDEFS= SYSLIBS=
102
101
102# Linux 1.1.80+ on [34]86
103linux:
104 $(MAKE) SYSDEFS="-O6 -Wall -fomit-frame-pointer"
105
103# SunOS 4.X
104sunos4:
105 $(MAKE) SYSDEFS="-DSUNOS -DETC_ETHERS" \
106 STRERROR=strerror.o
107
108# Solaris 2.X (i.e. SunOS 5.X)
109sunos5:
110 $(MAKE) SYSDEFS="-DSVR4 -DETC_ETHERS" \
111 SYSLIBS="-lsocket -lnsl"
112
106# SunOS 4.X
107sunos4:
108 $(MAKE) SYSDEFS="-DSUNOS -DETC_ETHERS" \
109 STRERROR=strerror.o
110
111# Solaris 2.X (i.e. SunOS 5.X)
112sunos5:
113 $(MAKE) SYSDEFS="-DSVR4 -DETC_ETHERS" \
114 SYSLIBS="-lsocket -lnsl"
115
113# UNIX System V Rel. 4 (also: IRIX 5.X, others)
116# Solaris 2.X (i.e. SunOS 5.X) with GCC. Note that GCC normally
117# defines __STDC__=1 which breaks many Solaris header files...
118sunos5gcc:
119 $(MAKE) SYSDEFS="-DSVR4 -DETC_ETHERS -D__STDC__=0" \
120 SYSLIBS="-lsocket -lnsl" CC="gcc -Wall"
121
122# UNIX System V Rel. 3
123svr3:
124 $(MAKE) SYSDEFS="-DSYSV"
125
126# UNIX System V Rel. 4
114svr4:
115 $(MAKE) SYSDEFS="-DSVR4" \
116 SYSLIBS="-lsocket -lnsl"
117
127svr4:
128 $(MAKE) SYSDEFS="-DSVR4" \
129 SYSLIBS="-lsocket -lnsl"
130
131# AT&T/GIS - Both AT&T StarServer and NCR 3000
132# may work for others using Wollongong's WIN-TCP
133wollongong gis :
134 $(MAKE) SYSDEFS="-DSVR4 -DWIN_TCP" \
135 SYSLIBS="-lsocket -lnsl"
136
118#
119# How to build each program:
120#
121
122OBJ_D= bootpd.o dovend.o readfile.o hash.o dumptab.o \
123 lookup.o getif.o hwaddr.o tzone.o report.o $(STRERROR)
124bootpd: $(OBJ_D)
125 $(CC) -o $@ $(OBJ_D) $(SYSLIBS)

--- 59 unchanged lines hidden ---
137#
138# How to build each program:
139#
140
141OBJ_D= bootpd.o dovend.o readfile.o hash.o dumptab.o \
142 lookup.o getif.o hwaddr.o tzone.o report.o $(STRERROR)
143bootpd: $(OBJ_D)
144 $(CC) -o $@ $(OBJ_D) $(SYSLIBS)

--- 59 unchanged lines hidden ---