watcom_l.mak
上传用户:shengde
上传日期:2021-02-21
资源大小:638k
文件大小:1k
源码类别:

压缩解压

开发平台:

Visual C++

  1. # Makefile for zlib
  2. # OpenWatcom large model
  3. # Last updated: 28-Dec-2005
  4. # To use, do "wmake -f watcom_l.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       = wcc
  14. LINKER   = wcl
  15. CFLAGS   = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
  16. ZLIB_LIB = zlib_l.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) -fe=example.exe example.obj $(ZLIB_LIB)
  28. minigzip.exe: $(ZLIB_LIB) minigzip.obj
  29. $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
  30. clean: .SYMBOLIC
  31.           del *.obj
  32.           del $(ZLIB_LIB)
  33.           @echo Cleaning done