home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma54.dms / ma54.adf / xpkFAST_V1_03 / Makefile < prev    next >
Makefile  |  1993-12-06  |  2KB  |  90 lines

  1. ###
  2. ### Makefile for the FAST sub library
  3. ###
  4.  
  5. lib:= xpkFAST.library
  6. ARCHIV:= xpkFAST_V1.03.lha
  7.  
  8. ### The Assembler:  BAsm, A68K, dasm, as, PhxAss, ...
  9. #AS:=
  10.  
  11. ### Assembler flags:
  12. #AFLAGS:= -O -OT -OG                # for BAsm
  13. #AFLAGS:= -f -q -iinclude:,xpk:include        # for A68k
  14.  
  15. ### The linker: SLink, BLink, PhxLnk
  16. #LD:=
  17.  
  18. ### Linker flags:
  19. #LDFLAGS:=SC SD ND
  20.  
  21. ### A C-Compiler often comes handy: gcc, dcc, sc, lc, cc, ...
  22. #CC:=
  23. #CFLAGS:=-pipe -m486 -O6 -fomit-frame-pointer -Wall    # for gcc
  24.  
  25. ### all files which have to be in the distribution
  26. ARCHIV_FILES:=    xpkFAST.library FAST.doc ToDo Makefile ChangeLog \
  27.         FAST.i xpkFAST.s FASTmisc.s compress.s compress2.s decompress.s
  28.  
  29. ### The objects for the .library
  30. OBJ_FILES:= xpkFAST.o FASTmisc.o compress.o compress2.o decompress.o
  31.  
  32. #####################################################################
  33. ### The default target is to build the library
  34.  
  35. all: $(lib)
  36.  
  37. #####################################################################
  38. ### Make the real library
  39.  
  40. $(lib): $(OBJ_FILES)
  41.     $(LD) $(LDFLAGS) \
  42.     TO $(lib) \
  43.     LIB lib:amiga.lib \
  44.     FROM $(OBJ_FILES)
  45.  
  46. #####################################################################
  47. ### Install the library and flush [unused] old versions.
  48.  
  49. install: $(lib)
  50.     Copy $(lib) libs:compressors
  51.     Avail FLUSH
  52.  
  53. #####################################################################
  54. ### Build the distribution.
  55.  
  56. dist: $(ARCHIV)
  57.  
  58. $(ARCHIV):  $(ARCHIV_FILES)
  59.     lha u $(ARCHIV) $(ARCHIV_FILES)
  60.  
  61.  
  62. #####################################################################
  63. ### Development testtools
  64.  
  65. sctest : sctest.o scompress.o sdecompress.o
  66.     $(CC) -o $@ $^
  67.  
  68. #####################################################################
  69. ### Cleanup
  70.  
  71. clean:
  72.     -$(RM) $(OBJ_FILES)
  73.  
  74. realclean: clean
  75.     -$(RM) $(lib)
  76.  
  77. #####################################################################
  78. #####################################################################
  79. ### Dependencies
  80.  
  81. compress.o    : compress.s
  82. compress2.o    : compress2.s
  83. decompress.o    : decompress.s
  84. xpkFAST.o    : xpkFAST.s FAST.i
  85. FASTmisc.o    : FASTmisc.s FAST.i
  86.  
  87. scompress.o    : scompress.c FAST.h
  88. sdecompress.o    : sdecompress.c FAST.h
  89. sctest.o    : sctest.c FAST.h
  90.