home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DMAKE38C.ZIP / UNIX / CONFIG.MK < prev    next >
Makefile  |  1991-03-27  |  1KB  |  40 lines

  1. # This is an OS specific configuration file
  2. #    It assumes that OBJDIR, TARGET and DEBUG are previously defined.
  3. #    It defines    CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
  4. #            PRINTER, PRINTFLAGS
  5. #    It augments    SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
  6. #
  7. PRINTER        = hw
  8. PRINTFLAGS    = -P$(PRINTER)
  9. STARTUPFILE    = $(OS)/startup.mk
  10. CPPFLAGS     = $(CFLAGS)
  11. LDOBJS        = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
  12. LDARGS        = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS)
  13.  
  14. # Debug flags
  15. DB_CFLAGS    = -g -DDBUG
  16. DB_LDFLAGS    = -g
  17. DB_LDLIBS    =
  18.  
  19. # NO Debug flags
  20. NDB_CFLAGS    = -O
  21. NDB_LDFLAGS    =
  22. NDB_LDLIBS    =
  23.  
  24. # Local configuration modifications for CFLAGS.
  25. CFLAGS         += -I$(OS)
  26.  
  27. # Sources that must be defined for each different version
  28. OSSRC := arlib.c dirbrk.c rmprq.c ruletab.c runargv.c
  29. SRC  += $(OSSRC)
  30. .SETDIR=$(OS) : $(OSSRC)
  31.  
  32. # Set source dirs so that we can find files named in this
  33. # config file.
  34. .SOURCE.h : $(OS)
  35.  
  36. # See if we modify anything in the lower levels.
  37. .IF $(OSRELEASE) != $(NULL)
  38.    .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
  39. .END
  40.