home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 56 / af056sub.adf / parnfs.lha / Makefile < prev    next >
Makefile  |  1993-12-02  |  2KB  |  84 lines

  1. # $Id: Makefile,v 1.3 1993/12/02 22:56:28 Rhialto Exp $
  2. #
  3. # Makefile for network file system handler, for use with the
  4. # DICE C compiler.
  5. #
  6. # This code is (C) Copyright 1993 by Olaf Seibert. All rights reserved.
  7. # May not be used or copied without a licence.
  8.  
  9. # DBOBJ = User:msh/syslog/syslogi.o
  10. #DB =     -d1 # -DDEBUG -IUser:msh/syslog
  11. #WACK =  -d1 -s
  12. REGARGS = -mRR -mi
  13. PURE = -r -mS
  14. HDR =    -Hnetfs.sym=netfs.h
  15.  
  16. HOBJ =    hancrtso.o pack.o support.o netfs.o netio.o netio1.o \
  17.     $(DBOBJ)
  18. HSRC =    hancrtso.a pack.c support.c netfs.c netio.c netio1.c \
  19.     dos.h netfs.h
  20. SOBJ =    server.o netio.o netio2.o $(DBOBJ)
  21. SSRC =    server.c     netio2.c
  22. XSRC =    Makefile parnfs.texi
  23.  
  24. .SUFFIXES: .a
  25.  
  26. #   Options:
  27. .c.o:
  28.     dcc -c -proto $(REGARGS) $(PURE) $(DB) $(HDR) $*.c -o $@
  29.  
  30. .a.o:
  31.     a68k -q $*.a -o$@
  32.  
  33. all:    precompile NetworkFileSystem NetworkFileServer parnfs.guide
  34.  
  35. clean:
  36.     delete *.o netfs.sym proto.h
  37.  
  38. NetworkFileSystem:    proto.h $(HOBJ)
  39.     dcc -o $@ -l0 $(REGARGS) $(PURE) $(WACK) $(HOBJ) -lc -lamiga20
  40.  
  41. NetworkFileServer:    proto.h $(SOBJ)
  42.     dcc -o $@ $(REGARGS) $(PURE) $(WACK) $(SOBJ)
  43.  
  44. hancrtso.o: hancrtso.a
  45.     dcc -c -o hancrtso.o hancrtso.a
  46.  
  47. proto.h: $(HSRC) $(SSRC)
  48.     -delete proto.h netfs.sym
  49.     makeproto -o proto.h $(HSRC) $(SSRC)
  50.  
  51. parnfs.guide: parnfs.texi
  52.     -makeinfo --amiga parnfs.texi
  53.  
  54. # Dependencies for precompiled header files
  55. netfs.sym: netfs.h
  56.     -delete netfs.sym
  57.  
  58. precompile: netfs.sym
  59.  
  60.  
  61. ci:
  62.     RCS:ci -u $(RCSOPT) $(HSRC) $(XSRC)
  63.  
  64. co:
  65.     RCS:co -l $(RCSOPT) $(HSRC) $(XSRC)
  66.  
  67. depend:
  68.     mkd -f $(HSRC) $(XSRC)
  69.  
  70. # DO NOT DELETE THIS LINE - important for making dependencies!
  71. #|.c|$*.o|  
  72. #|.a|$*.o|  
  73. #|.h|
  74. # From this line on, everything has been created by MakeDepend.
  75. # Anything you add yourself will be deleted automagically.
  76.  
  77. parnfs.texi:
  78. netio1.o: devices/parnet.h proto.h dos.h netfs.h netio1.c
  79. netio.o: devices/parnet.h proto.h dos.h netfs.h netio.c
  80. netfs.o: proto.h dos.h netfs.h netfs.c
  81. support.o: proto.h dos.h netfs.h support.c
  82. pack.o: proto.h dos.h netfs.h pack.c
  83. hancrtso.o: hancrtso.a
  84.