home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / src / dmakefile < prev    next >
Encoding:
Makefile  |  1999-11-30  |  1.9 KB  |  76 lines

  1. # Dice makefile for NFSd
  2. # ©1998,1999 Joseph Walton
  3.  
  4. # This software is distributed under the terms of the GNU General Public
  5. # License; either version 2 of the License, or (at your option) any
  6. # later version.
  7.  
  8. # Why can't everything be GNU make?
  9.  
  10. CC = dcc
  11. CFLAGS = -proto -mi -mRR -Inetinclude:
  12.  
  13. SRCS = auth.c config.c dirlist.c handle_list.c hashtable.c main.c \
  14.         memory.c mount.c mount_functions.c nfs.c nfs_functions.c \
  15.         nfs_utils.c pcnfsd.c rpc.c rpc_register.c service_nfsd.c \
  16.         timerdev.c
  17.  
  18. OBJS = $(SRCS:*.*:"%1.o")
  19.  
  20. HDRS = auth.h config.h dirlist.h handle_list.h hashtable.h memory.h \
  21.         mount.h mount_functions.h mount_prot.h nfs.h nfs_functions.h \
  22.         nfs_prot.h nfs_utils.h nfsd.h pcnfsd.h pcnfsd_prot.h rpc.h \
  23.         rpc_register.h service_nfsd.h timerdev.h
  24.  
  25. # The final executable
  26. NFSD = nfsd
  27.  
  28. $(NFSD): $(OBJS)
  29.     $(CC) -o $(NFSD) $(OBJS) $(CFLAGS)
  30.  
  31. $(OBJS): $(SRCS)
  32.     $(CC) -c %(right) $(CFLAGS) -o %(left)
  33.  
  34. clean:
  35.     delete $(OBJS) $(NFSD)
  36.  
  37. # Header dependencies
  38.  
  39. auth.o: auth.h config.h handle_list.h nfs.h rpc.h
  40.  
  41. config.o: config.h memory.h nfs_utils.h nfsd.h
  42.  
  43. dirlist.o: dirlist.h handle_list.h memory.h nfs_utils.h nfsd.h
  44.  
  45. handle_list.o: auth.h dirlist.h handle_list.h hashtable.h \
  46.         memory.h nfs_utils.h nfsd.h
  47.  
  48. hashtable.o: hashtable.h memory.h nfsd.h
  49.  
  50. main.o: config.h handle_list.h memory.h mount.h nfs.h nfs_utils.h \
  51.         nfsd.h pcnfsd.h rpc_register.h service_nfsd.h timerdev.h
  52.  
  53. memory.o: handle_list.h memory.h nfsd.h
  54.  
  55. mount.o: mount.h mount_functions.h nfs.h
  56.  
  57. mount_functions.o: auth.h config.h handle_list.h mount.h nfs_utils.h nfsd.h
  58.  
  59. nfs.o: nfs.h nfs_functions.h nfsd.h rpc.h
  60.  
  61. nfs_functions.o: auth.h handle_list.h memory.h nfs_utils.h nfsd.h
  62.  
  63. nfs_utils.o: handle_list.h memory.h nfsd.h
  64.  
  65. pcnfsd.o: pcnfsd.h rpc.h
  66.  
  67. rpc.o: rpc.h
  68.  
  69. rpc_register.o: nfs_utils.h rpc.h rpc_register.h
  70.  
  71. service_nfsd.o: handle_list.h memory.h mount.h nfs.h nfs_utils.h \
  72.         nfsd.h pcnfsd.h rpc.h
  73.  
  74. timerdev.o: timerdev.h
  75.  
  76.