#
#	Makefile for dcmfg/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@

ofstddir = $(top_srcdir)/../ofstd
oflogdir = $(top_srcdir)/../oflog
dcmdatadir = $(top_srcdir)/../dcmdata
dcmioddir = $(top_srcdir)/../dcmiod

LOCALINCLUDES = -I$(ofstddir)/include -I$(oflogdir)/include \
	-I$(dcmdatadir)/include -I$(dcmioddir)/include

LOCALDEFS =

objs = concatenationcreator.o \
	concatenationloader.o \
	fg.o \
	fgbase.o \
	fgctacquisitiondetails.o \
	fgctacquisitiontype.o \
	fgctadditionalxraysource.o \
	fgctexposure.o \
	fgctgeometry.o \
	fgctimageframetype.o \
	fgctposition.o \
	fgctreconstruction.o \
	fgcttabledynamics.o \
	fgctxraydetails.o \
	fgderimg.o \
	fgfact.o \
	fgfracon.o \
	fgframeanatomy.o \
	fgframevoilut.o \
	fgpixeltransform.o \
	fgimagedatatype.o \
	fginterface.o \
	fgirradiationeventid.o \
	fgpixmsr.o \
	fgparametricmapframetype.o \
	fgplanor.o \
	fgplanorvol.o \
	fgplanpo.o \
	fgplanposvol.o \
	fgrealworldvaluemapping.o \
	fgseg.o \
	fgtemporalposition.o \
	fgusimagedescription.o \
	fgtypes.o \
	stack.o \
	stackinterface.o

library = libdcmfg.$(LIBEXT)


all: $(library)

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


install: $(library)
	$(configdir)/mkinstalldirs $(DESTDIR)$(libdir)
	$(INSTALL_DATA) $(library) $(DESTDIR)$(libdir)/$(library)
	$(RANLIB) $(DESTDIR)$(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)
