home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 192.lha / Snip_v1.3 / makefile < prev    next >
Makefile  |  1988-04-28  |  2KB  |  66 lines

  1.  
  2. # To build snip you need to assign snip: to the directory containing all
  3. # source files. You also need to assign incl: to the directory containing
  4. # a Manx pre-compiled include file of the common intuition & graphics
  5. # symbols. This particular incarnation also uses detach.o32 which is specific
  6. # to Manx 3.6. If you don't link it in the only difference will be that you
  7. # need to run SNIP and it will use the default CLI stack rather than a fixed
  8. # 4000 bytes.
  9.  
  10. S = snip:
  11. OBJS = $Ssnip.ln $Sstash.ln $Sgfx_txt.ln $Sfuncs.ln $Swindowutil.ln $Scbio.ln $Skbio.ln $Sparse.ln
  12. SRCS = $Sstash.c $Sgfx_txt.c $Ssnip.c $Sfuncs.c $Swindowutil.c $Scbio.c $Skbio.c $Sparse.c
  13. ASMS = $Sstash.asm $Sgfx_txt.asm $Ssnip.asm $Sfuncs.asm $Swindowutil.asm $Scbio.asm $Skbio.asm $Sparse.asm
  14. .SUFFIXES = .ln .asm .c
  15.  
  16. CFLAGS = +l +Iincl:incl.32 -a
  17. LFLAGS = -lc32
  18.  
  19. H = $Ssnip.h
  20. D = $Sdefs.h
  21.  
  22. .asm.ln:
  23.     rez as -u cc
  24.     as -o $@ $S$*.asm
  25.  
  26. .c.asm:
  27.     rez cc -u as
  28.     cc $(CFLAGS) -o $@ $S$*.c
  29.  
  30. all.ln: $(ASMS)
  31.  
  32. snip: $(OBJS)
  33.     rez -u as
  34.     ln -o ram:snip $(OBJS) $Sdetach.o32 -lc32
  35.     copy ram:snip $S
  36.  
  37. $Ssnip.ln: $Ssnip.asm
  38. $Sstash.ln: $Sstash.asm
  39. $Sgfx_txt.ln: $Sgfx_txt.asm
  40. $Sfuncs.ln: $Sfuncs.asm
  41. $Swindowutil.ln: $Swindowutil.asm
  42. $Scbio.ln: $Scbio.asm
  43. $Skbio.ln: $Skbio.asm
  44. $Sparse.ln: $Sparse.asm
  45.  
  46.  
  47. $Sstash.asm: $Sstash.c $D
  48. $Sgfx_txt.asm: $Sgfx_txt.c $D
  49. $Ssnip.asm: $Ssnip.c $D $H
  50. $Sfuncs.asm: $Sfuncs.c
  51. $Swindowutil.asm: $Swindowutil.c
  52. $Scbio.asm: $Scbio.c
  53. $Skbio.asm: $Skbio.c
  54. $Sparse.asm: $Sparse.c $D
  55.  
  56. snipgen: $Ssnipgen.c
  57.     rez -u as
  58.     cc $(CFLAGS) -o $Ssnipgen.asm $Ssnipgen.c
  59.     rez -u cc
  60.     as -o ram:snipgen.ln $Ssnipgen.asm
  61.     ln -o ram:snipgen ram:snipgen.ln -lc32
  62.  
  63.  
  64.  
  65.  
  66.