home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-11-30 | 1.9 KB | 76 lines |
- # Dice makefile for NFSd
- # ©1998,1999 Joseph Walton
-
- # This software is distributed under the terms of the GNU General Public
- # License; either version 2 of the License, or (at your option) any
- # later version.
-
- # Why can't everything be GNU make?
-
- CC = dcc
- CFLAGS = -proto -mi -mRR -Inetinclude:
-
- SRCS = auth.c config.c dirlist.c handle_list.c hashtable.c main.c \
- memory.c mount.c mount_functions.c nfs.c nfs_functions.c \
- nfs_utils.c pcnfsd.c rpc.c rpc_register.c service_nfsd.c \
- timerdev.c
-
- OBJS = $(SRCS:*.*:"%1.o")
-
- HDRS = auth.h config.h dirlist.h handle_list.h hashtable.h memory.h \
- mount.h mount_functions.h mount_prot.h nfs.h nfs_functions.h \
- nfs_prot.h nfs_utils.h nfsd.h pcnfsd.h pcnfsd_prot.h rpc.h \
- rpc_register.h service_nfsd.h timerdev.h
-
- # The final executable
- NFSD = nfsd
-
- $(NFSD): $(OBJS)
- $(CC) -o $(NFSD) $(OBJS) $(CFLAGS)
-
- $(OBJS): $(SRCS)
- $(CC) -c %(right) $(CFLAGS) -o %(left)
-
- clean:
- delete $(OBJS) $(NFSD)
-
- # Header dependencies
-
- auth.o: auth.h config.h handle_list.h nfs.h rpc.h
-
- config.o: config.h memory.h nfs_utils.h nfsd.h
-
- dirlist.o: dirlist.h handle_list.h memory.h nfs_utils.h nfsd.h
-
- handle_list.o: auth.h dirlist.h handle_list.h hashtable.h \
- memory.h nfs_utils.h nfsd.h
-
- hashtable.o: hashtable.h memory.h nfsd.h
-
- main.o: config.h handle_list.h memory.h mount.h nfs.h nfs_utils.h \
- nfsd.h pcnfsd.h rpc_register.h service_nfsd.h timerdev.h
-
- memory.o: handle_list.h memory.h nfsd.h
-
- mount.o: mount.h mount_functions.h nfs.h
-
- mount_functions.o: auth.h config.h handle_list.h mount.h nfs_utils.h nfsd.h
-
- nfs.o: nfs.h nfs_functions.h nfsd.h rpc.h
-
- nfs_functions.o: auth.h handle_list.h memory.h nfs_utils.h nfsd.h
-
- nfs_utils.o: handle_list.h memory.h nfsd.h
-
- pcnfsd.o: pcnfsd.h rpc.h
-
- rpc.o: rpc.h
-
- rpc_register.o: nfs_utils.h rpc.h rpc_register.h
-
- service_nfsd.o: handle_list.h memory.h mount.h nfs.h nfs_utils.h \
- nfsd.h pcnfsd.h rpc.h
-
- timerdev.o: timerdev.h
-
-