#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# @(#)Makefile 1.2 (Berkeley) 2/7/86
#
ALL = tftpd.o tftpsubs.o tftpyale.o config.o
SRCS = tftpd.c tftpsubs.c tftpyale.c config.c
DESTDIR =
ETCDIR =/usr/local/etc
BINDIR =/usr/local/libexec
CONFIGF =$(ETCDIR)/tftpd.conf
CONFIGS =-DCONFIGFILE='"$(CONFIGF)"'
#
# These options are for AIX, which by default has a broken
# implementation of signals. If you supply these options,
# it acts like BSD signals and works fine.
#
# This is for AIX
#SYSDEP =-DBSD_INCLUDES -DBSD_REMAP_SIGNAL_TO_SIGVEC \
# -I/usr/include -I/usr/include/sys
# This is for everything reasonable
SYSDEP =
OPTIONS =${CONFIGS} ${SYSDEP}
CFLAGS =${OPTIONS} -O
LIBS =-Lclasses -lclasses
LDFLAGS =${LIBS}
IFLAGS =-c -s
all: tftpd
tftpd: ${ALL} classes/libclasses.a
${CC} ${ALL} ${LDFLAGS} && mv a.out $@
install: all
${INSTALL} ${IFLAGS} tftpd ${DESTDIR}${BINDIR}/tftpd
classes/libclasses.a:
cd classes; ${MAKE}
depend:
mkdep ${SRCS}
clean:
rm -f tftpd *.o *.s errs core a.out t.?
(cd classes ; make clean)
# DO NOT DELETE THIS LINE
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
tftpd.o: tftpd.c
tftpsubs.o: tftpsubs.c
tftpyale.o: tftpyale.c ./tftpyale.h ./classes/config.h ./classes/dict.h
tftpyale.o: ./classes/access.h
config.o: config.c
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
syntax highlighted by Code2HTML, v. 0.9.1