makefile.dj2 1.3 KB

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