home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / mac / config.mk < prev    next >
Makefile  |  1994-10-23  |  1KB  |  45 lines

  1. # This is an OS Mac specific configuration file
  2. #   It assumes that OBJDIR, TARGET and DEBUG are previously defined.
  3. #   It defines  CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
  4. #   It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
  5. #
  6.  
  7. STARTUPFILE = :$(OS):startup.mk
  8.  
  9. CPPFLAGS    = $(CFLAGS)
  10. LDOBJS      = $(CSTARTUP) :$(OBJDIR):{$(<:f)}
  11. LDARGS      = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS)
  12.  
  13. # Debug flags
  14. DB_CFLAGS   = -sym on 
  15. DB_LDFLAGS  = -sym on
  16. DB_LDLIBS   =
  17.  
  18. # NO Debug flags
  19. NDB_CFLAGS  = -sym off
  20. NDB_LDFLAGS = -sym off
  21. NDB_LDLIBS  =
  22.  
  23. # Local configuration modifications for CFLAGS.
  24. CFLAGS     += -I :$(OS) -d _MPW -s $(<:b)
  25. LDFLAGS    += -w -c 'MPS ' -t MPST
  26.  
  27. # Since we writing out what files we want to execute, we can't use .SETDIR
  28. # to specify the files to compile in the Mac directory.
  29. # Instead, we copy the files to the (top-level) current directory and compile
  30. # them there.
  31. %.c : ":$(OS):%.c"
  32.     duplicate -y $< $@
  33.  
  34. # Common Mac source files.
  35. OS_SRC = arlib.c bogus.c dirbrk.c directry.c environ.c main.c rmprq.c \
  36.          ruletab.c tempnam.c tomacfil.c
  37. .IF $(SHELL) != mwp
  38.    .SETDIR=$(OS) : $(OS_SRC)
  39. .ENDIF
  40. SRC += $(OS_SRC)
  41.  
  42. # Set source dirs so that we can find files named in this
  43. # config file.
  44. .SOURCE.h : $(OS)
  45.