home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / cyber14.lha / CyberCron / Source / smakefile < prev    next >
Encoding:
Makefile  |  1992-09-29  |  1.4 KB  |  62 lines

  1. # smakefile for CyberCron
  2. # Copyright ⌐ 1992 by Christopher A. Wichura (caw@miroc.chi.il.us)
  3. # All rights reserved.
  4.  
  5. PROGNAME = CyberCron
  6.  
  7. DEBUG = symbol
  8.  
  9. HDR = $(PROGNAME).gst
  10. CFLAGS = debug=$(DEBUG) nostkchk strmerge parms=reg optimize gstimm utillib
  11.  
  12. LFLAGS = smallcode smalldata
  13.  
  14. OBJS = startup.o CyberCron.o DoMsg.o TextTable.o wb2cli.o
  15. LIBS = LIB:sc.lib LIB:debug.lib LIB:amiga.lib
  16.  
  17. .c.o:
  18.     Copy $*.c $*.c.bak
  19.     Indent $*.c.bak $*.c
  20.     sc $(CFLAGS) gst=$(HDR) $*
  21.  
  22. .a.o:
  23.     ASM -iINCLUDE: $*
  24.  
  25. .cd.h:
  26.     CatComp $*.cd CFILE $*.h
  27.  
  28. # build the stripped load file
  29. $(PROGNAME): $(PROGNAME).ld
  30.     slink from $(PROGNAME).ld to $(PROGNAME) stripdebug
  31.  
  32. # build a load file with the debugging info still present
  33. $(PROGNAME).ld: $(OBJS) version.o smakefile
  34.     slink with lib:utillib.with <with < (CyberCron.lnk)
  35. FROM $(OBJS) version.o
  36. TO $(PROGNAME).ld
  37. LIB $(LIBS)
  38. $(LFLAGS)
  39. ADDSYM
  40. MAP $(PROGNAME).map fhlsx plain
  41. <
  42.  
  43. ##############################################################################
  44. # make target for reference from the command line that causes
  45. # the revision number to be bumped up
  46. version:
  47.     UpCVersion $(PROGNAME) version.o
  48.     smake
  49.  
  50. ##############################################################################
  51. # dependancies for various objects
  52.  
  53. $(HDR): CyberCron.h CyberCronStrings.h smakefile
  54.     sc $(CFLAGS) noobjname makegst=$(HDR) CyberCronSyms
  55.  
  56. CyberCron.o: CyberCron.c $(HDR)
  57.  
  58. TextTable.o: TextTable.c CyberCronStrings.h
  59.     Copy $*.c $*.c.bak
  60.     Indent $*.c.bak $*.c
  61.     sc $(CFLAGS) $*
  62.