# Make file for hack user tftp CFLAGS = -O STFTP-OBJS = stftp.o conn.o srvr_log.o srvr_cmds.o tmpnam.o UTFTP-OBJS = utftp.o conn.o srvr_log.o user_cmds.o TFTP-OBJS = tftp.o conn.o user_log.o user_cmds.o INCS = tftp.h conn.h /include/ip.h /include/in_params.h \ /include/in_extern.h /include/udp.h all: utftp stftp tftp tcom showlog utftp: $(UTFTP-OBJS) cc -o utftp $(UTFTP-OBJS) -ludp -linternet -lS $(UTFTP-OBJS): $(INCS) stftp: $(STFTP-OBJS) cc -o stftp $(STFTP-OBJS) -ludp -linternet -lS $(STFTP-OBJS): $(INCS) srvr_cmds.c: srvr_cmds.h tftp: $(TFTP-OBJS) cc -o tftp $(TFTP-OBJS) -ludp -linternet -lS tcom: srvr_cmds.h tcom.c cc $(CFLAGS) -o tcom tcom.c -lS showlog: showlog.c cc $(CFLAGS) -o showlog showlog.c -lS install: cp utftp /bin/utftp chmod 01755 /bin/utftp cp stftp /etc/stftp -chown Net_Daemon /etc/stftp -chgrp Daemons /etc/stftp chmod 06755 /etc/stftp cp tftp /bin/tftp chmod 01755 /bin/tftp cp tcom /bin -chown Net_Daemon /bin/tcom -chgrp Daemons /bin/tcom chmod 06755 /bin/tcom cp showlog /bin chmod 0755 /bin/showlog