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.

65 lines
1.3 KiB

  1. # Makefile for PngMinus (png2pnm and pnm2png)
  2. # Linux / Unix
  3. #CC=cc
  4. CC=gcc
  5. LD=$(CC)
  6. RM=rm -f
  7. #PNGPATH = /usr/local
  8. #PNGINC = -I$(PNGPATH)/include/libpng12
  9. #PNGLIB = -L$(PNGPATH)/lib -lpng12
  10. #PNGLIBS = $(PNGPATH)/lib/libpng12.a
  11. PNGINC = -I../..
  12. PNGLIB = -L../.. -lpng
  13. PNGLIBS = ../../libpng.a
  14. #ZPATH = /usr/local
  15. #ZINC = -I$(ZPATH)/include
  16. #ZLIB = -L$(ZPATH)/lib -lz
  17. #ZLIBS = $(ZPATH)/lib/libz.a
  18. ZINC = -I../../../zlib
  19. ZLIB = -L../../../zlib -lz
  20. ZLIBS = ../../../zlib/libz.a
  21. CFLAGS=-O3 $(PNGINC) $(ZINC)
  22. LDFLAGS=$(PNGLIB) $(ZLIB)
  23. LDFLAGSS=$(PNGLIBS) $(ZLIBS)
  24. C=.c
  25. O=.o
  26. L=.a
  27. E=
  28. # dependencies
  29. #all: png2pnm$(E) pnm2png$(E)
  30. all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E)
  31. png2pnm$(O): png2pnm$(C)
  32. $(CC) -c $(CFLAGS) png2pnm$(C)
  33. png2pnm$(E): png2pnm$(O)
  34. $(LD) -o png2pnm$(E) png2pnm$(O) $(LDFLAGS) -lm
  35. png2pnm-static$(E): png2pnm$(O)
  36. $(LD) -o png2pnm-static$(E) png2pnm$(O) $(LDFLAGSS) -lm
  37. pnm2png$(O): pnm2png$(C)
  38. $(CC) -c $(CFLAGS) pnm2png$(C)
  39. pnm2png$(E): pnm2png$(O)
  40. $(LD) -o pnm2png$(E) pnm2png$(O) $(LDFLAGS) -lm
  41. pnm2png-static$(E): pnm2png$(O)
  42. $(LD) -o pnm2png-static$(E) pnm2png$(O) $(LDFLAGSS) -lm
  43. clean:
  44. $(RM) png2pnm$(O)
  45. $(RM) pnm2png$(O)
  46. $(RM) png2pnm$(E)
  47. $(RM) pnm2png$(E)
  48. $(RM) png2pnm-static$(E)
  49. $(RM) pnm2png-static$(E)
  50. # End of makefile for png2pnm / pnm2png