1ee55d9edb
common-make-defs.txt
25 lines
477 B
Makefile
25 lines
477 B
Makefile
top_builddir = ..
|
|
top_srcdir = @srcdir@/..
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
CXX=@CXX@
|
|
CXXFLAGS=@CXXFLAGS@
|
|
LDFLAGS=@LDFLAGS@ @LT_LDFLAGS@
|
|
LIBTOOL=@LIBTOOL@
|
|
|
|
all: uselib
|
|
|
|
uselib: uselib.cc libmodule1.la
|
|
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la
|
|
|
|
libmodule1.la: module1.lo
|
|
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo
|
|
|
|
%.lo: %.cc
|
|
$(LIBTOOL) $(CXX) $(CXXFLAGS) -c $<
|
|
|
|
include ${top_srcdir}/common-make-defs.txt
|
|
|
|
clean: clean-common
|