watcom_f.mak 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Makefile for zlib
  2. # OpenWatcom flat model
  3. # Last updated: 28-Dec-2005
  4. # To use, do "wmake -f watcom_f.mak"
  5. C_SOURCE = adler32.c compress.c crc32.c deflate.c &
  6. gzclose.c gzlib.c gzread.c gzwrite.c &
  7. infback.c inffast.c inflate.c inftrees.c &
  8. trees.c uncompr.c zutil.c
  9. OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
  10. gzclose.obj gzlib.obj gzread.obj gzwrite.obj &
  11. infback.obj inffast.obj inflate.obj inftrees.obj &
  12. trees.obj uncompr.obj zutil.obj
  13. CC = wcc386
  14. LINKER = wcl386
  15. CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx
  16. ZLIB_LIB = zlib_f.lib
  17. .C.OBJ:
  18. $(CC) $(CFLAGS) $[@
  19. all: $(ZLIB_LIB) example.exe minigzip.exe
  20. $(ZLIB_LIB): $(OBJS)
  21. wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
  22. wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj
  23. wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj
  24. wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
  25. wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
  26. example.exe: $(ZLIB_LIB) example.obj
  27. $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB)
  28. minigzip.exe: $(ZLIB_LIB) minigzip.obj
  29. $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
  30. clean: .SYMBOLIC
  31. del *.obj
  32. del $(ZLIB_LIB)
  33. @echo Cleaning done