Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.5 KiB

  1. # Makefile for zlib
  2. # Borland C++ for Win32
  3. #
  4. # Usage:
  5. # make -f win32/Makefile.bor
  6. # make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
  7. # ------------ Borland C++ ------------
  8. # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
  9. # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
  10. # added to the declaration of LOC here:
  11. LOC = $(LOCAL_ZLIB)
  12. CC = bcc32
  13. AS = bcc32
  14. LD = bcc32
  15. AR = tlib
  16. CFLAGS = -a -d -k- -O2 $(LOC)
  17. ASFLAGS = $(LOC)
  18. LDFLAGS = $(LOC)
  19. # variables
  20. ZLIB_LIB = zlib.lib
  21. OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
  22. OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
  23. #OBJA =
  24. OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
  25. OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
  26. #OBJPA=
  27. # targets
  28. all: $(ZLIB_LIB) example.exe minigzip.exe
  29. .c.obj:
  30. $(CC) -c $(CFLAGS) $<
  31. .asm.obj:
  32. $(AS) -c $(ASFLAGS) $<
  33. adler32.obj: adler32.c zlib.h zconf.h
  34. compress.obj: compress.c zlib.h zconf.h
  35. crc32.obj: crc32.c zlib.h zconf.h crc32.h
  36. deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
  37. gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
  38. gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
  39. gzread.obj: gzread.c zlib.h zconf.h gzguts.h
  40. gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
  41. infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
  42. inffast.h inffixed.h
  43. inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
  44. inffast.h
  45. inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
  46. inffast.h inffixed.h
  47. inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
  48. trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
  49. uncompr.obj: uncompr.c zlib.h zconf.h
  50. zutil.obj: zutil.c zutil.h zlib.h zconf.h
  51. example.obj: example.c zlib.h zconf.h
  52. minigzip.obj: minigzip.c zlib.h zconf.h
  53. # For the sake of the old Borland make,
  54. # the command line is cut to fit in the MS-DOS 128 byte limit:
  55. $(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
  56. -del $(ZLIB_LIB)
  57. $(AR) $(ZLIB_LIB) $(OBJP1)
  58. $(AR) $(ZLIB_LIB) $(OBJP2)
  59. $(AR) $(ZLIB_LIB) $(OBJPA)
  60. # testing
  61. test: example.exe minigzip.exe
  62. example
  63. echo hello world | minigzip | minigzip -d
  64. example.exe: example.obj $(ZLIB_LIB)
  65. $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
  66. minigzip.exe: minigzip.obj $(ZLIB_LIB)
  67. $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
  68. # cleanup
  69. clean:
  70. -del $(ZLIB_LIB)
  71. -del *.obj
  72. -del *.exe
  73. -del *.tds
  74. -del zlib.bak
  75. -del foo.gz