home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / MUI / MCC_VLab / Developer / c / examples / smakefile < prev    next >
Encoding:
Makefile  |  1999-05-18  |  819 b   |  44 lines

  1. # © 1999 Steve Quartly
  2. #
  3. # use smake <option> for the following build options:
  4. #   clean - to delete built files
  5. #   all - to rebuild everything (except release)
  6. #
  7. #   the default is to build only the library
  8. #
  9. NAME = VLab-Demo
  10.  
  11. CFLG = NOSTACKCHECK STRINGMERGE CPU=68000 #DEBUG=F 
  12. LFLG = SMALLCODE SMALLDATA BATCH NOICONS STRIPDEBUG
  13. LIBS = lib:sc.lib lib:amiga.lib
  14. OBJ1 = main.o vlabwinclass.o
  15. LOBJ = lib:c.o
  16.  
  17. # Build the library (default)
  18. $(NAME): $(OBJ1) smakefile
  19.     slink <WITH <
  20.     FROM $(LOBJ)
  21.     FROM $(OBJ1)
  22.     LIB $(LIBS)
  23.     TO $(NAME)
  24.     $(LFLG)
  25.     <
  26.  
  27. # Build everything
  28. all:
  29.     smake clean
  30.     smake
  31.  
  32. # Delete built files, ignoring any errors
  33. clean:
  34.     -Delete >NIL: \#?.o $(NAME)
  35.  
  36. # Smake default transform
  37. .c.o:
  38.     sc $(CFLG) $*
  39.  
  40. # Module dependencies
  41. main.o: main.c vlabwinclass.h
  42.  
  43. vlabwinclass.o: vlabwinclass.c vlabwinclass.h
  44.