Permalink
Browse files

Add support for recursive makefiles (builds for ARM and X86)

  • Loading branch information...
1 parent d647982 commit ff0ca33414b294008b7a098d3a349a6d9603f20e @hungc hungc committed with Anthony Hu Apr 19, 2012
Showing with 71 additions and 0 deletions.
  1. +8 −0 Makefile
  2. +8 −0 arm/Makefile
  3. +1 −0 arm/a-le-v7-g/Makefile
  4. +1 −0 arm/a-le-v7/Makefile
  5. +43 −0 common.mk
  6. +8 −0 x86/Makefile
  7. +1 −0 x86/a-g/Makefile
  8. +1 −0 x86/a/Makefile
View
@@ -0,0 +1,8 @@
+LIST=CPU
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
View
@@ -0,0 +1,8 @@
+LIST=VARIANT
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
View
@@ -0,0 +1 @@
+include ../../common.mk
View
@@ -0,0 +1 @@
+include ../../common.mk
View
@@ -0,0 +1,43 @@
+ifndef QCONFIG
+QCONFIG=qconfig.mk
+endif
+include $(QCONFIG)
+
+#####################################
+# Preset make macros go here
+#####################################
+
+NAME=cppunit
+SO_VERSION=1.0
+
+EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src/cppunit
+
+EXCLUDE_OBJS=DllMain.o
+
+EXTRA_INCVPATH+=$(PROJECT_ROOT)/src
+EXTRA_INCVPATH+=$(PROJECT_ROOT)/include
+
+# Avoid error when linking the test program
+CCFLAGS += -fPIC
+
+define PINFO
+PINFO DESCRIPTION=CppUnit library
+endef
+INSTALLDIR=usr/lib
+
+include $(MKFILES_ROOT)/qtargets.mk
+
+#####################################
+# Post-set make macros go here
+#####################################
+
+# Use the QNX build system's $(VARIANT_LIST) to determine whether to use
+# debugging libraries, etc.
+ifeq ($(filter g,$(VARIANT_LIST)),g)
+ CCFLAGS += -O0
+else
+ # Non-debug build.
+ #
+ # Enable optimizations suitable for modern C++.
+ CCFLAGS += -O3
+endif
View
@@ -0,0 +1,8 @@
+LIST=VARIANT
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
View
@@ -0,0 +1 @@
+include ../../common.mk
View
@@ -0,0 +1 @@
+include ../../common.mk

0 comments on commit ff0ca33

Please sign in to comment.