home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / utilities / dirutils / visualshell / src / makefile < prev    next >
Encoding:
Makefile  |  1992-03-05  |  1.1 KB  |  54 lines

  1. #
  2. #        Makefile for VShell
  3. #
  4. # Macros
  5. #
  6. DEFINES=
  7. #
  8. PRECOMP=ram:vsh.pre
  9. CFLAGS_PRE=-a -ms -pcs -so -wdelopqw
  10. CFLAGS=-ms -pcs -so -wdelopqw
  11. LFLAGS=-m +q
  12. SEGMENT_OBJECTS=crt0.o main_segment.o vars.o config.o display1.o\
  13.  display2.o action1.o action2.o subs.o dos1.o dos2.o view.o tree.o\
  14.  history.o asmsupp1.o asmsupp2.o asmsupp3.o compile_date.o
  15. VSH_OBJECTS=crt0.o main_vsh.o
  16. #
  17. LIBRARIES=-larp16 -lc16
  18. #
  19. # Dependancy entries
  20. #
  21. all: $(PRECOMP) vsh vshsegment
  22. #
  23. .c.o: $(PRECOMP)
  24.    cc $(DEFINES) $(CFLAGS) -hi $(PRECOMP) -o $@ $*.c
  25. #
  26. .asm.o:
  27.    as -o $@ $*.asm
  28. #
  29. $(PRECOMP): vsh.pre
  30.    copy vsh.pre $@ clone
  31. #
  32. vsh.pre: includes.h defines.h
  33.    cc $(DEFINES) $(CFLAGS_PRE) -ho $(PRECOMP) -o nil: includes.h
  34.    copy ram:$@ $@ clone
  35. #
  36. compile_date.c:
  37.    printdate >compile_date.c format "char **compile_date = \q\d \t\q;"
  38. #
  39. vsh: $(VSH_OBJECTS)
  40.    ln $(LFLAGS) -o $@ $(VSH_OBJECTS) $(LIBRARIES)
  41. #
  42. vshsegment: $(SEGMENT_OBJECTS)
  43.    ln $(LFLAGS) -o $@ $(SEGMENT_OBJECTS) $(LIBRARIES)
  44.    delete compile_date.c compile_date.o quiet
  45. #
  46. cleanup:
  47.    delete (#?.o|vsh.pre) quiet
  48.    delete ram:vsh.pre
  49. #
  50. new:
  51.    delete #?.o quiet
  52.    make
  53. #
  54.