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.

122 lines
3.8 KiB

  1. # Makefile for libpng
  2. # Watcom C/C++ 10.0 and later, 32-bit protected mode, flat memory model
  3. # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
  4. # copyright 1995 Guy Eric Schalnat, Group 42, Inc.
  5. #
  6. # This code is released under the libpng license.
  7. # For conditions of distribution and use, see the disclaimer
  8. # and license in png.h
  9. # To use, do "wmake /f scripts\makefile.watcom"
  10. # ---------------------- Watcom C/C++ 10.0 and later -----------------------
  11. # Where the zlib library and include files are located
  12. ZLIBLIB=..\zlib
  13. ZLIBINC=..\zlib
  14. # Target OS
  15. OS=DOS
  16. #OS=NT
  17. # Target CPU
  18. CPU=6 # Pentium Pro
  19. #CPU=5 # Pentium
  20. # Calling convention
  21. CALLING=r # registers
  22. #CALLING=s # stack
  23. # Uncomment next to put error messages in a file
  24. #ERRFILE=>>pngerrs
  25. # --------------------------------------------------------------------------
  26. CC=wcc386
  27. CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq
  28. LD=wcl386
  29. LDFLAGS=-zq
  30. O=.obj
  31. OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
  32. OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
  33. OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
  34. all: test
  35. # see scripts/pnglibconf.mak for more options
  36. # to support watcom calling conventions it is necessary to set PNG_API_RULE to 2
  37. # in pnglibconf.h - copy scripts/pnglibconf.h.prebuilt, delete the first line and change
  38. # the definition of PNG_API_RULE from 0 to 2.
  39. #
  40. # If you know how to do this with the Watcom build system please supply a patch
  41. # for this makefile to the PNG implementation list.
  42. pnglibconf.h: scripts/pnglibconf.h.prebuilt
  43. @echo please copy scripts/pnglibconf.h.prebuilt and change PNG_API_RULE to 2
  44. png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  45. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  46. pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  47. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  48. pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  49. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  50. pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  51. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  52. pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  53. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  54. pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  55. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  56. pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  57. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  58. pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  59. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  60. pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  61. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  62. pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  63. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  64. pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  65. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  66. pngtest$(O): png.h pngconf.h pnglibconf.h
  67. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  68. pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  69. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  70. pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  71. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  72. pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  73. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  74. pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  75. $(CC) $(CFLAGS) $*.c $(ERRFILE)
  76. libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
  77. wlib -b -c -n -q libpng.lib $(OBJS1)
  78. wlib -b -c -q libpng.lib $(OBJS2)
  79. wlib -b -c -q libpng.lib $(OBJS3)
  80. pngtest.exe: pngtest.obj libpng.lib
  81. $(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
  82. test: pngtest.exe .symbolic
  83. pngtest.exe
  84. # End of makefile for libpng