1
# Last updated : Tue Dec 15 03:38:58 1998
10
CFILES=bootpc.c main.c
12
# List the header files here
13
CHEADS=bootpc.h bootp.h bptypes.h log.h
15
# Other files we want to have arround in distrib
16
MISC=Makefile MANIFEST LICENCE NOTICE LSM DHCP README WHEN-IT-FAILS VERSION \
17
ChangeLog rc.bootp VERSION
23
# we generate this from the list of C files above
27
$(CC) $(CFLAGS) -c $(*).c
32
${RM} -f ${OBJS} ${PROG} *~ *.tar *.tar.gz *.tgz
35
${CC} -o ${PROG} ${CFLAGS} ${OBJS}
38
${PROG}-static: ${OBJS}
39
${CC} -static -o ${PROG} ${CFLAGS} ${OBJS}
42
# Make up a distribution file from the bits we want people to see
43
distrib: $(CFILES) $(CHEADS) $(MISC)
45
rdate=`date '+%d%h%y'|tr '[a-z]' '[A-Z]'`; \
46
distname=bootpc-$$1 ; \
47
rm -fr $$distname $$distname.tar $$distname.tar.gz; \
49
chmod 755 $$distname; \
50
for i in `cat MANIFEST` ; do \
51
[ -f $$i ] && sed -e "s/0.64/$$1/g;s/17DEC98/$$rdate/g" $$i > $$distname/$$i && echo $$i; \
53
ln -s LSM $$distname/$$distname.lsm; \
54
cp $$distname/$$distname.lsm .; \
55
chmod -R a+rx $$distname; \
56
tar -cvf $$distname.tar $$distname; \
57
gzip -9v $$distname.tar; \