DIR = wrappers
.SUFFIXES : .cpp
.cpp.o:
	(cd ..; $(LINK_COMPILE.cpp) $(GNUFLAGS) $(DIR)/$<; mv $@ $(DIR))
## important:   use lorder() and tsort() to establish correct order
SOURCES.cpp = 		\
basicSTkInit.cpp		\
graphSTkInit.cpp		\
userobjSTkInit.cpp	\
algorithmSTkInit.cpp	\
generatorSTkInit.cpp	\
layoutSTkInit.cpp		\
extensionSTkInit.cpp

OBJECTS = \
	$(SOURCES.cpp:%.cpp=%.o)
all:    objects
wraptest:
../libLINKgui.a: $(OBJECTS) wraptest
#	strip $(OBJECTS)
	ar cr ../libLINKgui.a $(OBJECTS)
	ranlib ../libLINKgui.a
objects: $(SOURCES.cpp) $(OBJECTS)
clean:
	$(RM) $(OBJECTS) 
#	$(RM) basicSTkInit.cpp graphSTkInit.cpp userobjSTkInit.cpp \
#	      $(LINK_BASE)/include/LINK/wrappers/basicSTkInit.h \
#	      $(LINK_BASE)/include/LINK/wrappers/graphSTkInit.h \
#	      $(LINK_BASE)/include/LINK/wrappers/userobjSTkInit.h \
#	      $(OBJECTS) 
print:
	hsp -p $(SOURCES.cpp)
wc:
	wc $(SOURCES.cpp)
depend:
	makedepend -fMake.wrappers $(DEPENDFLAGS) $(SOURCES.cpp)
# DO NOT DELETE THIS LINE -- make depend depends on it.
