Bochs/bochs-testing/plugin-test/test7-win32dll/Makefile.in

37 lines
956 B
Makefile
Raw Normal View History

top_builddir = ..
top_srcdir = @srcdir@/..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@ @INCLTDL@
all: uselib module1.dll module2.dll
uselib: main.cc main.h
$(CXX) $(CXXFLAGS) -c -o main.o main.cc
dlltool --export-all --output-def uselib.def main.o
dlltool --dllname uselib.exe --def uselib.def --output-lib uselib.a
dlltool --dllname uselib.exe --output-exp uselib.exp --def uselib.def
$(CXX) $(CXXFLAGS) -o uselib uselib.exp main.o
rm uselib.exp uselib.def
module1.dll: module1.cc main.h
$(CXX) $(CXXFLAGS) -shared -o module1.dll module1.cc uselib.a
module2.dll: module2.cc main.h
$(CXX) $(CXXFLAGS) -shared -o module2.dll module2.cc uselib.a
%.o: %.cc
$(CXX) $(CXXFLAGS) -c $<
test:
@echo "*** Running test in `pwd`"
-./uselib
@echo "*** Test done in `pwd`"
clean:
-$(LIBTOOL) rm libmodule1.la module1.lo libmodule2.la module2.lo
-rm -rf *.o *.lo *.la *.dll uselib.exe bin lib uselib uselib.exe
-rm -rf .libs