# Makefile for pf module.

# STATICLIB is used to specify an archive target - that is, the module
# object files are combined into one file with unix 'ar' program. This
# file is then easy to link into the binary in the top level makefile.
# You must write here a name for the archive file, for example libbisup.a.
STATICLIB = libpf.a

# DYNLIB is used to specify a dynamic library name. For example libbisup.so.
DYNLIB = libpf.so

# OBJS must have all object files of your module. It is necessary to
# define this and STATIC/DYNLIB _before_ the next step (include Rules.Make),
# otherwise the makefiles WON'T WORK.
OBJS =	naming.o \
	memory.o \
	exception.o \
	pushsupplier_impl.o \
	debug.o \
	ie.o \
	iecontainer.o \
	storage.o \
	frame.o \
	integer.o \
	bitstring.o \
	bithandler.o \
	device.o \
	atmsocket.o \
	ipsocket.o \
	udpsocket.o \
	protocol.o \
	adapter.o \
	factory.o \
	mux.o \
	accessor.o \
	messenge.o \
	transp.o \
	conduit.o \
	state.o \
	timer.o \
	timers.o \
	parser.o \
	fileparser.o \
	tools.o \
	system.o

# test.o # No use for this yet.

#
# Include a Rules file
#
include $(OPPSRC)/Rules.Make

static : $(OBJS)
	$(AR) $(AROPTIONS) $(STATICLIB) $(OBJS)
	$(RANLIB) $(STATICLIB)

dynamic : $(OBJS)
	$(CC) -shared $(CCFLAGS) -o $(DYNLIB) $(OBJS)

# Install rules.
static_install : static
	$(INSTALL) $(INSTALLOPTS) $(STATICLIB) $(INSTALLTARGET)

dynamic_install : dynamic
	$(INSTALL) $(INSTALLOPTS) $(DYNLIB) $(INSTALLTARGET)

deepdep : dep
#	@for i in $(SUBDIRS); do ( cd $$i && $(MAKE) deepdep ); done

deepclean : clean
#	@for i in $(SUBDIRS); do ( cd $$i && $(MAKE) deepclean ); done


# Dependencies are below. The line next to this is used by makedepend, so
# DO NOT DELETE

