home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / dialoglib / smakefile < prev    next >
Makefile  |  1993-03-08  |  1KB  |  53 lines

  1. # setup several paths (directories must already exist!)
  2. LIB_DIR = data:services/lib/
  3. INCLUDE_TOPDIR = data:services/include/
  4. INCLUDE_DIR = $(INCLUDE_TOPDIR)dialog/
  5. DOC_DIR = doc:programming/
  6. ARC_DIR = arc:
  7.  
  8. ARCHIVER = lha
  9. ARC_CMD = r
  10. ARC_EXT = lha
  11.  
  12. HDR = dialog.h gtsup.h
  13. SRC = run.c setuphook.c element.c gtsup.c\
  14.      root.c vstack.c hstack.c vcons.c hcons.c hbumper.c vbumper.c hspring.c vspring.c\
  15.      display.c button.c checkbox.c entry.c listview.c mx.c cycle.c
  16. OBJ = run.o setuphook.o element.o gtsup.o\
  17.      root.o vstack.o hstack.o vcons.o hcons.o hbumper.o vbumper.o hspring.o vspring.o\
  18.      display.o button.o checkbox.o entry.o listview.o mx.o cycle.o
  19.  
  20. all: dialog.lib
  21.  
  22. $(SRC): $(HDR)
  23.  
  24. dialog.lib: $(OBJ)
  25.     oml $@ r $(OBJ)
  26.  
  27. $(LIB_DIR)dialog.lib: dialog.lib
  28.     copy dialog.lib $(LIB_DIR)
  29.  
  30. $(INCLUDE_DIR)dialog.h:    dialog.h
  31.     copy dialog.h $(INCLUDE_DIR)
  32.  
  33. $(DOC_DIR)dialog.doc: dialog.doc
  34.     copy dialog.doc $(DOC_DIR)
  35.  
  36. PUBLIC =    $(LIB_DIR)dialog.lib\
  37.             $(INCLUDE_DIR)dialog.h\
  38.             $(DOC_DIR)dialog.doc
  39.  
  40. public: $(PUBLIC)
  41.  
  42. clean:
  43.     -delete \#?.o
  44.  
  45. BIN_ARCHIVE = dialog.lib
  46. SRC_ARCHIVE = $(SRC) $(HDR) smakefile SCOPTIONS dialog.doc
  47. XMP_ARCHIVE = examples/examples.lha
  48.  
  49. $(ARC_DIR)dialoglib.$(ARC_EXT): $(BIN_ARCHIVE)
  50.     $(ARCHIVER) $(ARC_CMD) $(ARC_DIR)dialoglib $(BIN_ARCHIVE) $(SRC_ARCHIVE) $(XMP_ARCHIVE)
  51.  
  52. archive: $(ARC_DIR)dialoglib.$(ARC_EXT)
  53.