2002-10-11 22:15:27 +04:00
|
|
|
top_builddir = ..
|
2002-10-11 22:32:27 +04:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2002-10-11 22:15:27 +04:00
|
|
|
|
|
|
|
CXX=@CXX@
|
|
|
|
CXXFLAGS=@CXXFLAGS@
|
|
|
|
LDFLAGS=@LDFLAGS@ @LT_LDFLAGS@
|
|
|
|
LIBTOOL=@LIBTOOL@
|
|
|
|
|
|
|
|
all: uselib
|
|
|
|
|
|
|
|
uselib: uselib.cc libmodule1.la
|
2002-10-11 22:32:27 +04:00
|
|
|
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la
|
2002-10-11 22:15:27 +04:00
|
|
|
|
|
|
|
libmodule1.la: module1.lo
|
|
|
|
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo
|
|
|
|
|
|
|
|
%.lo: %.cc
|
|
|
|
$(LIBTOOL) $(CXX) $(CXXFLAGS) -c $<
|
|
|
|
|
|
|
|
test:
|
|
|
|
@echo "*** Running test in `pwd`"
|
|
|
|
-./uselib
|
|
|
|
@echo "*** Test done in `pwd`"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-$(LIBTOOL) rm libmodule1.la module1.lo uselib.exe uselib
|
|
|
|
rm -rf .libs
|