1# 2# Makefile for dcmjpeg/libijg16 3# 4 5@SET_MAKE@ 6 7SHELL = /bin/sh 8VPATH = @srcdir@:@top_srcdir@/include:@top_srcdir@/@configdir@/include 9srcdir = @srcdir@ 10top_srcdir = @top_srcdir@ 11configdir = @top_srcdir@/@configdir@ 12 13include $(configdir)/@common_makefile@ 14 15ofstddir = $(top_srcdir)/../ofstd 16 17LOCALINCLUDES = -I$(ofstddir)/include 18LOCALDEFS = -DWITH_ARITHMETIC_PATCH 19 20objs = jcomapi.o jcodec.o jutils.o jerror.o jmemmgr.o \ 21 jmemnobs.o jcapimin.o jcapistd.o jctrans.o jcparam.o \ 22 jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o \ 23 jcprepct.o jclossls.o jclossy.o jccoefct.o jccolor.o \ 24 jcsample.o jchuff.o jcphuff.o jcshuff.o jclhuff.o \ 25 jcpred.o jcscale.o jcdiffct.o jcdctmgr.o jfdctfst.o \ 26 jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o \ 27 jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdlossls.o \ 28 jdlossy.o jdhuff.o jdlhuff.o jdphuff.o jdshuff.o \ 29 jdpred.o jdscale.o jddiffct.o jdmainct.o jdcoefct.o \ 30 jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o \ 31 jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o \ 32 jdmerge.o jcarith.o jdarith.o jaricom.o 33library = libijg16.$(LIBEXT) 34 35 36all: $(library) 37 38install: $(library) 39 $(configdir)/mkinstalldirs $(DESTDIR)$(libdir) 40 $(INSTALL_DATA) $(library) $(DESTDIR)$(libdir)/$(library) 41 $(RANLIB) $(DESTDIR)$(libdir)/$(library) 42 43 44$(library): $(objs) 45 $(AR) $(ARFLAGS) $@ $(objs) 46 $(RANLIB) $@ 47 48 49clean: 50 rm -f $(objs) $(library) $(TRASH) 51 52distclean: 53 rm -f $(objs) $(library) $(DISTTRASH) 54 55 56dependencies: 57 $(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.c > $(DEP) 58 59include $(DEP) 60