1#
2#	Makefile for dcmpstat/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
15dcmdatadir = $(top_srcdir)/../dcmdata
16ofstddir = $(top_srcdir)/../ofstd
17oflogdir = $(top_srcdir)/../oflog
18dcmimgledir = $(top_srcdir)/../dcmimgle
19dcmsrdir = $(top_srcdir)/../dcmsr
20dcmqrdbdir = $(top_srcdir)/../dcmqrdb
21dcmnetdir = $(top_srcdir)/../dcmnet
22dcmsigndir = $(top_srcdir)/../dcmsign
23dcmtlsdir = $(top_srcdir)/../dcmtls
24
25LOCALINCLUDES = -I$(ofstddir)/include -I$(oflogdir)/include -I$(dcmdatadir)/include \
26	-I$(dcmimgledir)/include -I$(dcmsrdir)/include -I$(dcmqrdbdir)/include \
27	-I$(dcmnetdir)/include -I$(dcmsigndir)/include -I$(dcmtlsdir)/include
28LOCALDEFS =
29
30objs = dvpsal.o dvpsgal.o dvpsgr.o dvpsovl.o dvpsrs.o dvpstx.o \
31	dvpsall.o dvpsgl.o dvpsgrl.o dvpsri.o dvpsrsl.o dvpstxl.o \
32	dvpsga.o dvpsgll.o dvpsov.o dvpsril.o dvpstat.o dviface.o \
33	dvpscu.o dvpscul.o dvpsvl.o dvpsvll.o dvpsvw.o dvpsvwl.o \
34	dvpsda.o dvpsdal.o dvpssv.o dvpssvl.o dvpspl.o \
35	dvpsib.o dvpsibl.o dvpssp.o dvpspr.o dvpscf.o dvpshlp.o \
36	dvpspll.o dvpsab.o dvpsabl.o dvpsspl.o dvpsprt.o dvpsfs.o \
37	dvpsmsg.o dvsighdl.o dcmpstat.o dvpspl2.o
38library = libdcmpstat.$(LIBEXT)
39
40
41all: $(library)
42
43install: $(library)
44	$(configdir)/mkinstalldirs $(DESTDIR)$(libdir)
45	$(INSTALL_DATA) $(library) $(DESTDIR)$(libdir)/$(library)
46	$(RANLIB) $(DESTDIR)$(libdir)/$(library)
47
48
49$(library): $(objs)
50	$(AR) $(ARFLAGS) $@ $(objs)
51	$(RANLIB) $@
52
53
54clean:
55	rm -f $(objs) $(library) $(TRASH)
56
57distclean:
58	rm -f $(objs) $(library) $(DISTTRASH)
59
60
61dependencies:
62	$(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.cc  > $(DEP)
63
64include $(DEP)
65