crosstool-ng/patches/duma/2_5_15/110-separate_cpp.patch
Yann E. MORIN" 76a9f0fd16 [debug-duma] Add latest versions
Add 2.5.15, propagate patchset from 2_5_14 up to 2_5_15.
2009-08-02 23:33:36 +02:00

20 lines
814 B
Diff

diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
--- duma_2_5_15.orig/GNUmakefile 2009-06-19 16:41:53.000000000 +0200
+++ duma_2_5_15/GNUmakefile 2009-06-19 16:43:53.000000000 +0200
@@ -289,9 +289,13 @@
dumatest.c tstheap.c thread-test.c testmt.c dumatestpp.cpp testoperators.cpp \
createconf.c
-OBJECTS=dumapp.o duma.o sem_inc.o print.o
+OBJECTS = duma.o sem_inc.o print.o
+SO_OBJECTS = duma_so.o sem_inc_so.o print_so.o
-SO_OBJECTS=dumapp_so.o duma_so.o sem_inc_so.o print_so.o
+ifeq ($(DUMA_CPP),1)
+OBJECTS += dumapp.o
+SO_OBJECTS += dumapp_so.o
+endif
# Make all the top-level targets the makefile knows about.
all: libduma.a tstheap$(EXEPOSTFIX) dumatest$(EXEPOSTFIX) thread-test$(EXEPOSTFIX) testmt$(EXEPOSTFIX) dumatestpp$(EXEPOSTFIX) testoperators$(EXEPOSTFIX) $(DUMA_DYN_DEPS)