makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. SSRC= message.c main.c bind.c rewrite.c local.c dest.c process.c translate.c\
  2. log.c chkfwd.c notify.c gateway.c authorize.o ../common/*.c
  3. SOBJ= message.o main.o bind.o rewrite.o local.o dest.o process.o translate.o\
  4. log.o chkfwd.o notify.o gateway.o authorize.o\
  5. ../config/config.o ../common/common.a ../libc/libc.a
  6. SINC= ../common/mail.h ../common/string.h ../common/aux.h
  7. CFLAGS=${UNIX} -g -I. -I../libc -I../common -I/usr/include ${SCFLAGS}
  8. LFLAGS=-g
  9. .c.o: ; $(CC) -c $(CFLAGS) $*.c
  10. LIB=/usr/lib/upas
  11. all: send
  12. send: $(SOBJ)
  13. $(CC) $(SOBJ) $(LFLAGS) -o send
  14. chkfwd.o: $(SINC) message.h dest.h
  15. dest.o: $(SINC) dest.h
  16. local.o: $(SINC) dest.h process.h
  17. log.o: $(SINC) message.h
  18. main.o: $(SINC) message.h dest.h process.h
  19. bind.o: $(SINC) dest.h message.h
  20. process.o: $(SINC) process.h
  21. rewrite.o: $(SINC) dest.h
  22. translate.o: $(SINC) dest.h process.h
  23. message.o: $(SINC) message.h
  24. notify.o: $(SINC) message.h
  25. gateway.o: $(SINC) dest.h message.h
  26. prcan:
  27. prcan $(SSRC)
  28. clean:
  29. -rm -f send *.[oO] a.out core *.sL rmail
  30. cyntax:
  31. cyntax $(CFLAGS) $(SSRC)
  32. install: send
  33. rm -f $(LIB)/send /bin/rmail
  34. cp send $(LIB)/send
  35. cp send /bin/rmail
  36. strip /bin/rmail
  37. strip $(LIB)/send
  38. chown root $(LIB)/send /bin/rmail
  39. chmod 4755 $(LIB)/send /bin/rmail