home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / dialoglib / examples.lha / smakefile < prev    next >
Makefile  |  1993-03-09  |  707b  |  31 lines

  1. # note: these paths are also defined in SCOPTIONS.
  2. # you must run scopts to change them there if necessary, too
  3. LIB_DIR = data:services/lib/
  4. INCLUDE_DIR = data:services/include/dialog/
  5.  
  6. ARCHIVER = lha
  7. ARC_CMD = r
  8. ARC_EXT = lha
  9.  
  10. SRC = test00.c test01.c test02.c test03.c test04.c test05.c test06.c
  11. EXE = test00.exe test01.exe test02.exe test03.exe test04.exe test05.exe test06.exe
  12.  
  13. all: $(EXE)
  14.  
  15. $(EXE): $(LIB_DIR)dialog.lib $(INCLUDE_DIR)dialog.h
  16.  
  17. .c.exe:
  18.     sc $*.c to $*.exe
  19.  
  20. SRC_ARCHIVE = $(SRC) smakefile SCOPTIONS
  21. BIN_ARCHIVE = $(EXE)
  22.  
  23. examples.$(ARC_EXT): $(BIN_ARCHIVE)
  24.     $(ARCHIVER) $(ARC_CMD) examples $(BIN_ARCHIVE) $(SRC_ARCHIVE)
  25.  
  26. archive: examples.$(ARC_EXT)
  27.  
  28. clean:
  29.     -delete \#?.o
  30.     -delete \#?.lnk
  31.