summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile47
1 files changed, 8 insertions, 39 deletions
diff --git a/src/Makefile b/src/Makefile
index 0d0e203..d8240a7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,5 @@
OBJECTS = typeinfo.o exception.o dynamic_cast.o terminate.o guard.o
-TEST_OBJECTS = test_typeinfo.o test.o test_exception.o new.o test_guard.o
-
# Needed for building the shared library
CXXFLAGS = -fPIC
# Needed for GCC atomic ops to work on x86.
@@ -20,42 +18,7 @@ CXXFLAGS += -Wall -pedantic -g
CPPFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib -L. -lpthread -fexceptions
-
-
-
-
-all: test libcxxabi.so.1
-
-PRODUCTS = test libcxxabi.so.1 system_test
-
-test: $(TEST_OBJECTS) libcxxabi.so.1
- @echo
- @gcc $(CPPFLAGS) $(LDFLAGS) -lcxxabi -o test $(TEST_OBJECTS)
-
-# Fudge the dynamic library search path to include the current directory so
-# that we can run the tests without having to install the .so
-runtest: test
- @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./test
-
-# Run the test program in the debugger
-debug: test
- @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) gdb ./test
-
-# Run the test program with valgrind. Make sure that the output from this has
-# no memory leaks
-valgrind: test
- @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) valgrind --leak-check=full ./test
-
-# Compile another version of the test program linked against libstdc++, run it,
-# and ensure that both versions pass the same number of tests. Bugs in the
-# unwinding can cause some test not to be executed - this is a quick way of
-# testing that the correct number pass.
-compare: test
- @$(CXX) $(CXXFLAGS) $(LDFLAGS) $(TEST_OBJECTS) -lstdc++ -o system_test
- @./system_test 2>&1 | tail -1 > system_test.out
- @echo Comparing libcxxabi and libstdc++ versions...
- @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./test 2>&1 | tail -1 | diff system_test.out -
-
+PRODUCTS = libcxxabi.so.1
libcxxabi.so.1: $(OBJECTS)
@echo Linking $@...
@@ -63,9 +26,15 @@ libcxxabi.so.1: $(OBJECTS)
.cc.o:
@echo Compiling $<...
- @echo $(CXXFLAGS)
@$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
clean:
@echo Cleaning...
@rm -f $(OBJECTS) $(PRODUCTS) $(TEST_OBJECTS) vgcore* *.core
+
+
+dynamic_cast.o: dynamic_cast.cc typeinfo.h abi_namespace.h typeinfo
+exception.o: exception.cc typeinfo.h abi_namespace.h typeinfo dwarf_eh.h
+guard.o: guard.cc
+terminate.o: terminate.cc
+typeinfo.o: typeinfo.cc typeinfo.h abi_namespace.h typeinfo