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.

93 lines
3.0 KiB

  1. # makefile for libpng using gcc (generic, static library)
  2. # Copyright (C) 2008 Glenn Randers-Pehrson
  3. # Copyright (C) 2000 Cosmin Truta
  4. # Copyright (C) 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. # Location of the zlib library and include files
  10. ZLIBINC = ../zlib
  11. ZLIBLIB = ../zlib
  12. # Compiler, linker, lib and other tools
  13. ifeq ($(origin CC),default)
  14. CC = gcc
  15. endif
  16. ifeq ($(origin AR_RC),default)
  17. AR_RC = ar rcs
  18. endif
  19. LD = $(CC)
  20. RANLIB = ranlib
  21. RM_F = rm -f
  22. CDEBUG = -g -DPNG_DEBUG=5
  23. LDDEBUG =
  24. CRELEASE = -O2
  25. LDRELEASE = -s
  26. #CFLAGS = -W -Wall $(CDEBUG)
  27. CFLAGS = -W -Wall $(CRELEASE)
  28. #LDFLAGS = $(LDDEBUG)
  29. LDFLAGS = $(LDRELEASE)
  30. LIBS = -lz -lm
  31. # File extensions
  32. O=.o
  33. A=.a
  34. EXE=
  35. # Variables
  36. OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
  37. pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
  38. pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
  39. # Targets
  40. all: static
  41. # see scripts/pnglibconf.mak for more options
  42. pnglibconf.h: scripts/pnglibconf.h.prebuilt
  43. cp scripts/pnglibconf.h.prebuilt $@
  44. .c$(O):
  45. $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<
  46. static: libpng$(A) pngtest$(EXE)
  47. shared:
  48. @echo This is a generic makefile that cannot create shared libraries.
  49. @echo Please use a configuration that is specific to your platform.
  50. @false
  51. libpng$(A): $(OBJS)
  52. $(AR_RC) $@ $(OBJS)
  53. $(RANLIB) $@
  54. test: pngtest$(EXE)
  55. ./pngtest$(EXE)
  56. pngtest$(EXE): pngtest$(O) libpng$(A)
  57. $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)
  58. clean:
  59. $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png pnglibconf.h
  60. png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  61. pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  62. pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  63. pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  64. pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  65. pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  66. pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  67. pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  68. pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  69. pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  70. pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  71. pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  72. pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  73. pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  74. pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
  75. pngtest$(O): png.h pngconf.h pnglibconf.h