2
0

makefile.unix 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # For conditions of distribution and use, see copyright notice in libmng.h
  3. #
  4. # makefile for libmng - THE MNG library
  5. # this makefile is suitable for generic unix
  6. # Configuration options are now in libmng_conf.h
  7. # The name of your C compiler:
  8. CC= cc
  9. # Location of jpeg header files
  10. JPEG_INC= /cs/include/jpeg
  11. # Location of zlib header files
  12. ZLIB_INC= /cs/include
  13. # Location of lcms header files
  14. # (switch on MNG_FULL_CMS in libmng_conf.h if you want to use this)
  15. LCMS_INC= /ltmp/lcms-1.06/source
  16. # compiler options:
  17. CFLAGS= -O -I. -I$(ZLIB_INC) -I$(JPEG_INC) -I$(LCMS_INC)
  18. # source files
  19. SOURCES= \
  20. libmng_callback_xs.c \
  21. libmng_chunk_io.c \
  22. libmng_chunk_descr.c \
  23. libmng_chunk_prc.c \
  24. libmng_chunk_xs.c \
  25. libmng_cms.c \
  26. libmng_display.c \
  27. libmng_dither.c \
  28. libmng_error.c \
  29. libmng_filter.c \
  30. libmng_hlapi.c \
  31. libmng_jpeg.c \
  32. libmng_object_prc.c \
  33. libmng_pixels.c \
  34. libmng_prop_xs.c \
  35. libmng_read.c \
  36. libmng_trace.c \
  37. libmng_write.c \
  38. libmng_zlib.c
  39. # object files
  40. OBJECTS= $(SOURCES:%.c=%.o)
  41. # type dependancies
  42. .c.o:
  43. $(CC) $(CFLAGS) -c $<
  44. all: libmng.a
  45. clean:
  46. /bin/rm -f $(OBJECTS)
  47. /bin/rm -f libmng.a
  48. /bin/rm -f *~ core
  49. libmng.a: $(OBJECTS)
  50. ar r libmng.a $(OBJECTS)
  51. depend:
  52. makedepend -- $(CFLAGS) $(IFLAGS) -- *.c
  53. # DO NOT DELETE