1# 2# Makefile for dcmdata/tests 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 16oflogdir = $(top_srcdir)/../oflog 17 18LOCALINCLUDES = -I$(top_srcdir)/include -I$(ofstddir)/include -I$(oflogdir)/include 19LIBDIRS = -L$(top_srcdir)/libsrc -L$(top_srcdir)/libi2d -L$(ofstddir)/libsrc \ 20 -L$(oflogdir)/libsrc 21LOCALLIBS = -ldcmdata -loflog -lofstd $(ZLIBLIBS) $(CHARCONVLIBS) $(MATHLIBS) 22I2DLIBS = -li2d 23 24objs = tests.o tpread.o ti2dbmp.o tchval.o tpath.o tvrdatim.o telemlen.o tparser.o \ 25 tdict.o tvrds.o tvrfd.o tvrui.o tvrol.o tvrov.o tvrsv.o tvruv.o tstrval.o \ 26 tspchrs.o tvrpn.o tparent.o tfilter.o tvrcomp.o tmatch.o tnewdcme.o \ 27 tgenuid.o tsequen.o 28 29progs = tests 30 31 32all: $(progs) 33 34tests: $(objs) 35 $(CXX) $(CXXFLAGS) $(LIBDIRS) $(LDFLAGS) -o $@ $(objs) $(I2DLIBS) $(LOCALLIBS) $(LIBS) 36 37 38check: tests 39 DCMDICTPATH=../data/dicom.dic ./tests 40 41check-exhaustive: tests 42 DCMDICTPATH=../data/dicom.dic ./tests -x 43 44 45install: all 46 47clean: 48 rm -f $(objs) $(progs) $(TRASH) 49 50distclean: 51 rm -f $(objs) $(progs) $(DISTTRASH) 52 53 54dependencies: 55 $(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.cc > $(DEP) 56 57include $(DEP) 58