home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / packery / xpk_source / examples / makefile next >
Makefile  |  1996-10-19  |  2KB  |  82 lines

  1. #
  2. # Makefile for the various example programs
  3. #
  4. # The files in here:
  5. # - xpkmanx.c   :  The 'xpk' program for Manx compilation
  6. # - xpksas.c    :  The 'xpk' program for SAS  compilation
  7. # - xpkdice.c   :  The 'xpk' program for DICE compilation
  8. # - xpkdice.lib :  The xpk glue codes for DICE users.
  9. #
  10. # Don't forget to copy //include to wherever you keep your include files or
  11. # to include xpk:include into your system include path.
  12. #
  13.  
  14. msg:
  15.     -Please specify your compiler, either 'make manx', 'make sas' or 'make dice'
  16.  
  17. all: manx dice sas gcc
  18.  
  19. manx: xpkmanx xSummanx xSum2manx
  20. dice: xpkdice xSumdice xSum2dice
  21. sas : xpksas  xSumsas  xSum2sas
  22. gcc : xpkgcc  xsumgcc  xSum2gcc
  23.  
  24.  
  25. #-----MANX
  26. xpkmanx: xpkmanx.c
  27.     cc xpkmanx.c
  28.     ln xpkmanx.o -lc
  29.  
  30. xSummanx: xSum.c
  31.     cc xSum.c -o xSummanx.o
  32.     ln xSummanx.o  /lib/xpkmanx.lib -lc
  33.  
  34. xSum2manx: xSum2.c
  35.     cc xSum2.c -o xSum2manx.o
  36.     ln xSum2manx.o  /lib/xpkmanx.lib -lc
  37.  
  38.  
  39.  
  40. #----DICE
  41. xpkdice: xpkdice.c
  42.     dcc xpkdice.c -l/lib/xpkdice.lib -oxpkdice
  43.  
  44. xSumdice: xSum.c
  45.     dcc xSum.c -l/lib/xpkdice.lib -oxSumdice
  46.  
  47. xSum2dice: xSum2.c
  48.     dcc xSum2.c -l/lib/xpkdice.lib -oxSum2dice
  49.  
  50.  
  51.  
  52. #----SAS
  53. xpksas: xpksas.c
  54.     sc xpksas.c LINK TO xpksas LIB lib:sc.lib NOICONS
  55.  
  56. xSumsas: xSum.c
  57.     sc xSum.c LINK TO xSumsas LIB //lib/xpksas.lib lib:amiga.lib lib:sc.lib NOICONS
  58.  
  59. xSum2sas: xSum2.c
  60.     sc DEBUG=FULL xSum2.c LINK TO xSum2sas LIB //lib/xpksas.lib lib:amiga.lib lib:sc.lib NOICONS 
  61.  
  62. #----GCC
  63. GCC_CFLAGS = -O2 -I../include -resident -Xlinker -s
  64.  
  65. xpkgcc: xpkgcc.c
  66.     gcc $(GCC_CFLAGS) $* -o $@
  67.  
  68. xSumgcc: xsum.c
  69.     gcc $(GCC_CFLAGS) $* -o $@
  70.  
  71. xSum2gcc: xsum2.c
  72.     gcc $(GCC_CFLAGS) $* -o $@
  73.  
  74.  
  75.  
  76. clean:
  77.     -Delete "#?.o"
  78.     -Delete "#?manx"
  79.     -Delete "#?sas"
  80.     -Delete "#?.lnk"
  81.     -Delete "#?dice"
  82.