1# 2# Makefile for dcmqrdb/libsrc 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 17dcmdatadir = $(top_srcdir)/../dcmdata 18dcmnetdir = $(top_srcdir)/../dcmnet 19 20LOCALINCLUDES = -I$(dcmnetdir)/include -I$(dcmdatadir)/include \ 21 -I$(ofstddir)/include -I$(oflogdir)/include 22LOCALDEFS = 23 24objs = dcmqrcbf.o dcmqrcbg.o dcmqrcbm.o dcmqrcbs.o dcmqrcnf.o dcmqrdbi.o \ 25 dcmqrdbs.o dcmqropt.o dcmqrptb.o dcmqrsrv.o dcmqrtis.o 26library = libdcmqrdb.$(LIBEXT) 27 28 29all: $(library) 30 31install: $(library) 32 $(configdir)/mkinstalldirs $(DESTDIR)$(libdir) 33 $(INSTALL_DATA) $(library) $(DESTDIR)$(libdir)/$(library) 34 $(RANLIB) $(DESTDIR)$(libdir)/$(library) 35 36 37$(library): $(objs) 38 $(AR) $(ARFLAGS) $@ $(objs) 39 $(RANLIB) $@ 40 41 42clean: 43 rm -f $(objs) $(library) $(TRASH) 44 45distclean: 46 rm -f $(objs) $(library) $(DISTTRASH) 47 48 49dependencies: 50 $(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.cc > $(DEP) 51 52include $(DEP) 53