# Generated automatically from Makefile.in by configure.
# This Makefile is used to create several test cases for Tcl's load
# command.  It also illustrates how to take advantage of configuration
# exported by Tcl to set up Makefiles for shared libraries.
# @(#) Makefile.in 1.3 95/09/03 17:28:38

SHLIB_CFLAGS =		-fPIC
SHLIB_LD =		gcc -shared
SHLIB_SUFFIX =		.so
CC = gcc

CFLAGS = -O2 -I../include ${SHLIB_CFLAGS}
MAKE = make $(MFLAGS)
MFLAGS ='CC=$(CC)'		\
	'CFLAGS=$(CFLAGS)'	\
	'SHLIB_LD=$(SHLIB_LD)'	\
	'SHLIB_SUFFIX=$(SHLIB_SUFFIX)'\
	'SHLIB_CFLAGS=$(SHLIB_CFLAGS)'

SO_FILES = pkga${SHLIB_SUFFIX} possum${SHLIB_SUFFIX} encrypt${SHLIB_SUFFIX}\
	hint${SHLIB_SUFFIX} autobot${SHLIB_SUFFIX} cavlink${SHLIB_SUFFIX}

all: $(SO_FILES)
	@echo
	@echo
	@echo There is one more package in this directory for a cdrom driver.
	@echo type "make cdrom.so" to have this package made

cdrom: cdrom${SHLIB_SUFFIX}

pkga${SHLIB_SUFFIX}: pkga.o
	${SHLIB_LD} pkga.o -o pkga${SHLIB_SUFFIX}

cdrom${SHLIB_SUFFIX}: cdrom.o
	${SHLIB_LD} cdrom.o -o cdrom${SHLIB_SUFFIX}

possum${SHLIB_SUFFIX}: possum/Makefile Makefile 
	@cd possum; $(MAKE) all
	@cp possum/possum${SHLIB_SUFFIX} .

encrypt${SHLIB_SUFFIX}: encrypt/Makefile Makefile 
	@cd encrypt; $(MAKE) all
	@cp encrypt/encrypt${SHLIB_SUFFIX} .

hint${SHLIB_SUFFIX}: hint/Makefile Makefile hint/hint.c
	@cd hint; $(MAKE) all
	@cp hint/hint${SHLIB_SUFFIX} .

autobot${SHLIB_SUFFIX}: abot/Makefile Makefile abot/autobot.c
	@cd abot; $(MAKE) all
	@cp abot/autobot${SHLIB_SUFFIX} .

cavlink${SHLIB_SUFFIX}: cavlink/Makefile Makefile cavlink/cavlink.c
	@cd cavlink; $(MAKE) all
	@cp cavlink/cavlink${SHLIB_SUFFIX} .

clean:
	-@cd possum; $(MAKE) clean
	-@cd hint; $(MAKE) clean
	-@cd abot; $(MAKE) clean
	-cd cavlink; $(MAKE) clean
	rm -f modules-`uname -s`.tgz
	rm -f *~ *.o $(SO_FILES) config.cache config.log config.status
	rm -f cdrom${SHLIB_SUFFIX}

distclean: clean
	rm -f Makefile *.tgz

package: $(SO_FILES)
	tar zcvf modules-`uname -s`.tgz *.so
