home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Utilities / vmount-0.6a-I / src / Makefile < prev    next >
Encoding:
Makefile  |  1997-04-30  |  1.6 KB  |  65 lines

  1. # This Makefile is derived from the Linux 1.2.11 main Makefile.
  2. # Author: Christian Starkjohann
  3. #
  4. # This and the subdirectory Makefiles must be run by GNU-Make.
  5.  
  6. .EXPORT_ALL_VARIABLES:
  7.  
  8. NAME=vmount
  9.  
  10. TOPDIR    :=    $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
  11. SUBDIRS =nfs fs
  12. #CFLAGS = -Wall -O2 -g
  13. CFLAGS = -Wall -O2 -traditional-cpp -g
  14. # Use the -traditional-cpp option for NeXT's cc!
  15. # The '-fomit-frame-pointer' option may be necessary for some inline
  16. # assembler code to work (especially asm/string.h, but most of this has
  17. # been disabled already). Unfortunately it makes debugging impossible.
  18. # And unfortunately the program crashes with a bus error when this option
  19. # is turned on.
  20.  
  21. MYINCL = $(TOPDIR)/my_include
  22. INCL = $(TOPDIR)/include
  23.  
  24. AS    =as
  25. LD    =ld
  26. CC    =cc -I$(MYINCL) -I$(INCL) -D__KERNEL__
  27. HOSTCC    =cc -I$(MYINCL) -I$(INCL)
  28. # Header files in $(MYINCL) may override those of $(INCL)!
  29. CPP    =$(CC) -E
  30. AR    =ar
  31. NM    =nm
  32. STRIP    =strip
  33.  
  34.  
  35. include $(TOPDIR)/config.make
  36.  
  37.  
  38. OFILES = main.o dummies.o buffers.o missing.o cache.o file_ops.o    \
  39.             id_translate.o mtab_lock.o
  40.  
  41. .c.o:
  42.     $(CC) $(CFLAGS) -c -o $*.o $<
  43.  
  44. all: vumount $(NAME)
  45.  
  46. # the fs_dir rule makes just the fs/* subdirectories
  47. fs_dir:
  48.     $(MAKE) -C fs
  49.  
  50. filesystems:
  51.     set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
  52.  
  53. depend dep:
  54.     set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i dep; done
  55.  
  56. vumount: vumount.o mtab_lock.o
  57.     $(CC) -o vumount vumount.o mtab_lock.o
  58.  
  59. $(NAME): $(OFILES) filesystems
  60.     $(CC) -o $(NAME) $(OFILES) nfs/nfs.o fs/filesystems.a
  61.  
  62. clean:    # burte force clean
  63.     rm -f `find . -name '*.o' -print`
  64.     rm -f fs/filesystems.a $(NAME)
  65.