Makefile.sas 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # SMakefile for zlib
  2. # Modified from the standard UNIX Makefile Copyright Jean-loup Gailly
  3. # Osma Ahvenlampi <Osma.Ahvenlampi@hut.fi>
  4. # Amiga, SAS/C 6.56 & Smake
  5. CC=sc
  6. CFLAGS=OPT
  7. #CFLAGS=OPT CPU=68030
  8. #CFLAGS=DEBUG=LINE
  9. LDFLAGS=LIB z.lib
  10. SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
  11. NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
  12. DEF=POSTINC
  13. OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
  14. uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
  15. TEST_OBJS = example.o minigzip.o
  16. all: SCOPTIONS example minigzip
  17. check: test
  18. test: all
  19. example
  20. echo hello world | minigzip | minigzip -d
  21. install: z.lib
  22. copy clone zlib.h zconf.h INCLUDE:
  23. copy clone z.lib LIB:
  24. z.lib: $(OBJS)
  25. oml z.lib r $(OBJS)
  26. example: example.o z.lib
  27. $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
  28. minigzip: minigzip.o z.lib
  29. $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
  30. mostlyclean: clean
  31. clean:
  32. -delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
  33. SCOPTIONS: Makefile.sas
  34. copy to $@ <from <
  35. $(SCOPTIONS)
  36. <
  37. # DO NOT DELETE THIS LINE -- make depend depends on it.
  38. adler32.o: zlib.h zconf.h
  39. compress.o: zlib.h zconf.h
  40. crc32.o: crc32.h zlib.h zconf.h
  41. deflate.o: deflate.h zutil.h zlib.h zconf.h
  42. example.o: zlib.h zconf.h
  43. gzclose.o: zlib.h zconf.h gzguts.h
  44. gzlib.o: zlib.h zconf.h gzguts.h
  45. gzread.o: zlib.h zconf.h gzguts.h
  46. gzwrite.o: zlib.h zconf.h gzguts.h
  47. inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
  48. inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
  49. infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
  50. inftrees.o: zutil.h zlib.h zconf.h inftrees.h
  51. minigzip.o: zlib.h zconf.h
  52. trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
  53. uncompr.o: zlib.h zconf.h
  54. zutil.o: zutil.h zlib.h zconf.h