#
#	Makefile for dcmpstat/libsrc
#


@SET_MAKE@

SHELL = /bin/sh
VPATH = @srcdir@:@top_srcdir@/include:@top_srcdir@/@configdir@/include
srcdir = @srcdir@
top_srcdir = @top_srcdir@
configdir = @top_srcdir@/@configdir@

include $(configdir)/@common_makefile@

dcmdatadir = $(top_srcdir)/../dcmdata
ofstddir = $(top_srcdir)/../ofstd
dcmimgledir = $(top_srcdir)/../dcmimgle
dcmsrdir = $(top_srcdir)/../dcmsr
dcmqrdbdir = $(top_srcdir)/../dcmqrdb
dcmnetdir = $(top_srcdir)/../dcmnet
dcmsigndir = $(top_srcdir)/../dcmsign
dcmtlsdir = $(top_srcdir)/../dcmtls

LOCALINCLUDES = -I$(ofstddir)/include -I$(dcmdatadir)/include -I$(dcmimgledir)/include \
	-I$(dcmsrdir)/include -I$(dcmqrdbdir)/include -I$(dcmnetdir)/include \
	-I$(dcmsigndir)/include	-I$(dcmtlsdir)/include
LOCALDEFS =

objs = dvpsal.o dvpsgal.o dvpsgr.o dvpsovl.o dvpsrs.o dvpstx.o \
	dvpsall.o dvpsgl.o dvpsgrl.o dvpsri.o dvpsrsl.o dvpstxl.o \
	dvpsga.o dvpsgll.o dvpsov.o dvpsril.o dvpstat.o dviface.o \
	dvpscu.o dvpscul.o dvpsvl.o dvpsvll.o dvpsvw.o dvpsvwl.o \
	dvpsda.o dvpsdal.o dvpssv.o dvpssvl.o dvpspl.o \
	dvpsib.o dvpsibl.o dvpssp.o dvpspr.o dvpscf.o dvpshlp.o \
	dvpspll.o dvpsab.o dvpsabl.o dvpsspl.o dvpsprt.o dvpsfs.o \
	dvpsmsg.o dvsighdl.o dcmpstat.o dvpspl2.o
library = libdcmpstat.$(LIBEXT)


all: $(library)

$(library): $(objs)
	$(AR) $(ARFLAGS) $@ $(objs)
	$(RANLIB) $@

install: all
	$(configdir)/mkinstalldirs $(libdir)
	$(INSTALL_DATA) $(library) $(libdir)/$(library)


clean:
	rm -f $(objs) $(library) $(TRASH)

distclean:
	rm -f $(objs) $(library) $(DISTTRASH)


dependencies:
	$(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.cc  > $(DEP)

include $(DEP)
