summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC <asura@fubar.(none)>2011-05-20 17:50:24 +0700
committerC <asura@fubar.(none)>2011-05-20 17:50:24 +0700
commit6fd114f6277e61f1a01080b1c857ea218e15493d (patch)
tree91a8d2ccf4afd0f124cd5f2500f018e2bdc65b42
parentcac0291eef8139d4c60aaef0c764936353365b57 (diff)
downloadlibcxxrt-6fd114f6277e61f1a01080b1c857ea218e15493d.tar.gz
libcxxrt-6fd114f6277e61f1a01080b1c857ea218e15493d.tar.bz2
libcxxrt-6fd114f6277e61f1a01080b1c857ea218e15493d.tar.xz
Remove unnecessary and confusing Makefiles
-rw-r--r--src/Makefile67
-rw-r--r--test/Makefile60
2 files changed, 0 insertions, 127 deletions
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 4d8049d..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,67 +0,0 @@
-OBJECTS = \
- aux.o \
- dynamic_cast.o \
- exception.o \
- guard.o \
- libelftc_vstr.o \
- libelftc_dem_gnu3.o \
- memory.o \
- stdexcept.o \
- typeinfo.o
-
-# Needed for building the shared library
-CXXFLAGS = -fPIC
-# Needed for GCC atomic ops to work on x86.
-CXXFLAGS += -march=native
-# This library implements exception handling, so make sure that the compiler
-# emits the correct code
-CXXFLAGS += -fexceptions
-
-# Useful flags for debugging
-CXXFLAGS += -Wall -pedantic -g
-
-# silence warnings about LL suffix (only works with clang / recent GCC):
-#CXXFLAGS += -std=c++0x
-
-# Find the unwind.h header installed from ports
-CPPFLAGS += -I/usr/local/include
-LDFLAGS += -L/usr/local/lib -L. -lpthread -fexceptions
-
-PRODUCTS = libcxxabi.so.1
-
-all: libcxxabi.so.1 libcxxabi.a
-
-libcxxabi.so.1: $(OBJECTS)
- @echo Linking $@...
- @gcc -fexception -shared $(OBJECTS) $(LDFLAGS) -o libcxxabi.so.1 #-lunwind
-
-libcxxabi.a: $(OBJECTS)
- @ar cr libcxxabi.a $(OBJECTS)
-
-
-.cc.o:
- @echo Compiling $<...
- @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
-
-.c.o:
- @echo Compiling $<...
- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
-
-clean:
- @echo Cleaning...
- @rm -f $(OBJECTS) $(PRODUCTS) $(TEST_OBJECTS) vgcore* *.core
-
-# Make seems to think that typeinfo should be created by compiling typeinfo.cc
-# into an executable. This is bad because it introduces a circular dependency,
-# and if you're unlucky tries to do some crazy things and deletes typeinfo. We
-# add this rule as a little fudge to tell Make to behave like a good little
-# program.
-typeinfo: typeinfo.h
- @touch typeinfo
-
-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
-typeinfo.o: typeinfo.cc typeinfo.h abi_namespace.h typeinfo
-memory.o: memory.cc
-aux.o: aux.cc
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
index ec4c62e..0000000
--- a/test/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-TEST_OBJECTS = test_typeinfo.o test.o test_exception.o test_guard.o
-
-# This library implements exception handling, so make sure that the compiler
-# emits the correct code
-CXXFLAGS += -fexceptions
-
-# Useful flags for debugging
-CXXFLAGS += -Wall -pedantic -g
-
-# silence warnings about LL suffix (only works with clang / recent GCC):
-#CXXFLAGS += -std=c++0x
-
-# Find the unwind.h header installed from ports
-CPPFLAGS += -I/usr/local/include
-LDFLAGS += -L/usr/local/lib -L. -lpthread -fexceptions
-
-PRODUCTS = test libcxxabi.so.1 system_test
-
-test: $(TEST_OBJECTS) libcxxabi.so library
- @gcc $(CPPFLAGS) $(LDFLAGS) -o test $(TEST_OBJECTS) -lcxxabi -lstdc++
-
-library:
- @cd ../src && $(MAKE)
-
-libcxxabi.so:
- @ln -sf ../src/libcxxabi.so.1 libcxxabi.so
-
-# 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 -
-
-
-.cc.o:
- @echo Compiling $<...
- @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
-
-clean:
- @echo Cleaning...
- @rm -f $(OBJECTS) $(PRODUCTS) $(TEST_OBJECTS) vgcore* *.core
- @cd ../src && $(MAKE) clean