home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d109 / uupc.lha / UUpc / Source / makefile < prev    next >
Makefile  |  1987-10-28  |  2KB  |  93 lines

  1. #        Makefile for uu/dcp with Amiga Aztec C
  2. #
  3. #        Jeff Lydiatt
  4. #        Last Modified: 02 October 1987
  5. #        Modeled after Stuart Lynne's for the Mac.
  6. #
  7.  
  8.  
  9. .c.o:
  10.     cc $(CFLAGS) $*.c
  11.  
  12. LFLAGS= -lc
  13. CFLAGS=
  14. AMILIB=    local/getcwd.o local/chdir.o local/mkdir.o local/ndir.o\
  15.     local/genv.o
  16.  
  17. SIOLIB=    local/sio.o local/Timer.o local/SerialIO.o local/sleep.o
  18.  
  19.  
  20. OFILES= dcp.o dcpsys.o dcpxfer.o dcpgpkt.o rmail.o lib.o
  21.  
  22.  
  23. all:     Binary/uupc Binary/mail
  24.     echo uupc & mail done
  25.  
  26. #
  27. # .o dependicies
  28. #
  29. dcp.o: dcp.c dcp.h local/host.h
  30. dcpsys.o: dcpsys.c dcp.h local/host.h
  31. dcpxfer.o: dcpxfer.c dcp.h local/host.h
  32. dcpgpkt.o: dcpgpkt.c dcp.h local/host.h
  33. lib.o: lib.c local/host.h
  34. lmail.o: pcmail.c lmail.c local/host.h
  35. mailhost.o: local/host.c local/host.h
  36. mail.o: local/host.h
  37. mlib.o: local/mlib.c local/host.h
  38. ulib.o: local/ulib.c local/host.h
  39. uuhost.o: local/host.c local/host.h
  40.  
  41. #
  42. # mail
  43. #
  44. Binary/mail: lmail.o mailhost.o mail.o mlib.o lib.o Makefile
  45.     ln mailhost.o mail.o lmail.o mlib.o lib.o $(AMILIB) $(LFLAGS) \
  46.      -o Binary/mail
  47.  
  48. #
  49. # uupc
  50. #
  51. Binary/uupc:    uuhost.o $(OFILES) ulib.o $(AMILIB) $(SIOLIB) Makefile
  52.     ln uuhost.o $(OFILES) ulib.o $(AMILIB) $(SIOLIB) $(LFLAGS) \
  53.      -o Binary/uupc
  54.  
  55. #
  56. # simple shar constructing
  57. #
  58. SDCP     = README.Install README.DCP \
  59.         dcp.c dcp.h dcpgpkt.c dcpsys.c dcpxfer.c
  60. SUU    = README.UU Makefile.ami \
  61.     host.h ndir.h lib.c lmail.c mail.c mailhost.c mlib.c \
  62.     pcmail.c rmail.c ulib.c uuhost.c systems profile
  63. SMAC    = mac/README.MAC \
  64.     mac/host.c mac/host.h mac/mlib.c mac/ulib.c mac/profile
  65.  
  66. AMI    = amiga/README.Amiga amiga/ReadME.install amiga/makefile\
  67.     amiga/genv.h amiga/host.h amiga/ndir.h \
  68.     amiga/SerialIO.c amiga/Timer.c amiga/chdir.c amiga/genv.c \
  69.     amiga/getcwd.c amiga/host.c amiga/mkdir.c \
  70.     amiga/mlib.c amiga/ndir.c amiga/sio.c amiga/sleep.c amiga/ulib.c
  71.          
  72. BINLIB= Binary/How_to_Use Binary/ReadME.1st Binary/Setup Binary/Systems.doc \
  73.         Binary/mail Binary/profile Binary/systems Binary/u Binary/uupc
  74.  
  75. #
  76. # Note: Manx's makefile seems to have a bug that forbids indirection
  77. #    such as "shar >lib a.c  b.c c.c"
  78. #    however "make >lib" seems to work fine if you edit out the
  79. #    commands make echos as it proceeds through the makefile.
  80. #
  81. #    Try make >uulib/dcp shardcp for example.
  82. #
  83. #
  84. shardcp:
  85.     shar  $(SDCP)
  86. sharuu:
  87.     shar $(SUU)
  88. sharami:
  89.     shar $(AMI)
  90. sharbin:
  91.     shar $(BINLIB)
  92.  
  93.