home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Makefiles / lib / Makefile.defaults < prev    next >
Encoding:
Makefile  |  1994-01-06  |  2.1 KB  |  75 lines

  1. # Makefile.defaults
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. ############################ Product names ############################
  12.  
  13. # names of the various end results of making
  14. OPT_LIB = lib$(NAME).a
  15. DEBUG_LIB = lib$(NAME)_g.a
  16. PROFILE_LIB = lib$(NAME)_p.a
  17.  
  18. # the default one to use
  19. PRODUCT = $(OPT_LIB)
  20.  
  21. ######################## Object file locations ########################
  22.  
  23. # names of various object file directories
  24. OBJROOT = .
  25. SYMROOT = .
  26.  
  27. OPT_OBJ = obj
  28. DEBUG_OBJ = debug_obj
  29. PROFILE_OBJ = profile_obj
  30.  
  31. OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)
  32. SYM_DIR = $(SYMROOT)/sym
  33.  
  34. VPATH = $(OFILE_DIR):$(SYM_DIR):$(OBJROOT):$(SYMROOT)$(OTHER_VPATH)
  35.  
  36. ############################ File groups ############################
  37.  
  38. # all the source code
  39. SRCS = $(MFILES) $(CFILES) $(PSWFILES) $(PSWMFILES) $(SFILES) \
  40.             $(LFILES) $(LMFILES) $(YFILES) $(YMFILES) $(HFILES) \
  41.             $(PSFILES) $(OTHER_SRCS)
  42.  
  43. # all nonderived files needed to build the project
  44. INSTALL_FILES = $(SRCS) Makefile Makefile.depends
  45.  
  46. # headers
  47. HFILES = $(PRIVATE_INCFILES) $(PUBLIC_INCFILES)
  48.  
  49. # all the object files
  50. OFILES = $(MFILES:.m=.o) $(CFILES:.c=.o) $(PSWFILES:.psw=.o) \
  51.             $(PSWMFILES:.pswm=.o) $(SFILES:.s=.o) \
  52.             $(LFILES:.l=.o) $(LMFILES:.lm=.o) $(YFILES:.y=.o) \
  53.             $(YMFILES:.ym=.o) $(OTHER_SRCS_OFILES)
  54.  
  55. # source files derived during the build
  56. DERIVED_SRC = $(PSWFILES:.psw=.c) $(PSWFILES:.psw=.h) $(PSWMFILES:.pswm=.m) \
  57.             $(PSWMFILES:.pswm=.h) $(LFILES:.l=.c) $(LMFILES:.lm=.m) \
  58.             $(YFILES:.y=.c) $(YMFILES:.ym=.m)
  59.  
  60. # files to be removed on make clean
  61. COMMON_GARBAGE = $(BY_PRODUCTS) TAGS tags $(DERIVED_SRC) Makefile.depends \
  62.             .depend_done core .make.out* *~
  63.  
  64. # more specific garbage
  65. SPECIFIC_GARBAGE = lib$(NAME)*.a
  66.  
  67. # directories to remove on make clean
  68. DIRECTORY_GARBAGE = $(OPT_OBJ) $(DEBUG_OBJ) $(PROFILE_OBJ) $(SYM_DIR)
  69.  
  70. # dependency files generated in build process
  71. DFILES = $(MFILES:.m=.d) $(CFILES:.c=.d) $(PSWFILES:.psw=.d) \
  72.             $(PSWMFILES:.pswm=.d) $(SFILES:.s=.d) \
  73.             $(LFILES:.l=.d) $(LMFILES:.lm=.d) $(YFILES:.y=.d) \
  74.             $(YMFILES:.ym=.d)
  75.