home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 389.lha / dme_v1.40 / src / DMakefile < prev    next >
Makefile  |  1990-07-03  |  898b  |  40 lines

  1.  
  2. #   Makefile for DME
  3. #
  4. #   You *need* my support library, sup32.lib, to compile this
  5. #
  6. #   There will be absolute reference warnings to DOSBase, SysBase,
  7. #   GfxBase, IconBase, IntuitionBase.
  8.  
  9. #EXE = root:altc/dme
  10. EXE = ram:dme
  11.  
  12. AFLAGS= -iinclude:/asminclude/
  13. CFLAGS= -r -v
  14. LFLAGS= -v -r -s
  15.  
  16. OD=    dtmp:dme/
  17.  
  18. ASRCS= afilereq.asm rexxbind.asm wildcmp.asm
  19.  
  20. CSRCS= command.c filereq.c globals.c keyboard.c \
  21.        main.c menu.c mods.c refs.c rexx.c subs.c cmd1.c cmd2.c cmd3.c
  22.  
  23. COBJS =  $(CSRCS:"*.c":"$(OD)*.o")
  24. AOBJS = $(ASRCS:"*.asm":"$(OD)*.o")
  25.  
  26. # This strangeness is get around the command-line-length limitation without
  27. # resorting to a -f file.
  28.  
  29. $(EXE): $(COBJS) $(AOBJS)
  30.     cd $(OD)
  31.     dcc $(LFLAGS) $(COBJS:"$(OD)*.o":"*.o") $(AOBJS:"$(OD)*.o":"*.o") -o %(left)
  32.     cd
  33.  
  34. $(COBJS) : $(CSRCS)
  35.     dcc -c $(CFLAGS) -o%(left) %(right)
  36.  
  37. $(AOBJS) : $(ASRCS)
  38.     asm $(AFLAGS) -o%(left)  %(right)
  39.  
  40.