makefile.gcc
Upload User: zlh9724
Upload Date: 2007-01-04
Package Size: 1991k
Code Size: 1k
Category:

Browser Client

Development Platform:

Unix_Linux

  1. # gcc/DOS makefile for libpng
  2. # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
  3. # For conditions of distribution and use, see copyright notice in png.h
  4. CC=gcc
  5. CFLAGS=-I../zlib -O
  6. LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
  7. RANLIB=ranlib
  8. # where make install puts libpng.a and png.h
  9. #prefix=/usr/local
  10. prefix=.
  11. OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o 
  12. pngread.o pngio.o pngwrite.o pngrtran.o pngwtran.o 
  13. pngmem.o pngerror.o pngpread.o
  14. all: libpng.a pngtest
  15. libpng.a: $(OBJS)
  16. ar rc $@  $(OBJS)
  17. $(RANLIB) $@
  18. pngtest: pngtest.o libpng.a
  19. $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
  20. coff2exe pngtest
  21. test: pngtest
  22. ./pngtest
  23. clean:
  24. rm -f *.o libpng.a pngtest pngout.png
  25. # DO NOT DELETE THIS LINE -- make depend depends on it.
  26. png.o: png.h pngconf.h
  27. pngerror.o: png.h pngconf.h
  28. pngio.o: png.h pngconf.h
  29. pngmem.o: png.h pngconf.h
  30. pngrcb.o: png.h pngconf.h
  31. pngread.o: png.h pngconf.h
  32. pngpread.o: png.h pngconf.h
  33. pngrtran.o: png.h pngconf.h
  34. pngrutil.o: png.h pngconf.h
  35. pngtest.o: png.h pngconf.h
  36. pngtrans.o: png.h pngconf.h
  37. pngwrite.o: png.h pngconf.h
  38. pngwtran.o: png.h pngconf.h
  39. pngwutil.o: png.h pngconf.h