Skip to content
Newer
Older
100644 49 lines (37 sloc) 946 Bytes
ff0ca33 @hungc Add support for recursive makefiles (builds for ARM and X86)
hungc authored
1 ifndef QCONFIG
2 QCONFIG=qconfig.mk
3 endif
4 include $(QCONFIG)
5
6 #####################################
7 # Preset make macros go here
8 #####################################
9
10 NAME=cppunit
11 SO_VERSION=1.0
12
13 EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src/cppunit
14
15 EXCLUDE_OBJS=DllMain.o
16
17 EXTRA_INCVPATH+=$(PROJECT_ROOT)/src
18 EXTRA_INCVPATH+=$(PROJECT_ROOT)/include
19
20 # Avoid error when linking the test program
21 CCFLAGS += -fPIC
22
23 define PINFO
24 PINFO DESCRIPTION=CppUnit library
25 endef
26 INSTALLDIR=usr/lib
27
11ebdf2 Add support to alternatively build against Gnu libc
Jeremy Raymond authored
28 ifeq ($(GNULIBC),yes)
29 CCFLAGS += -Y_gpp
30 LDFLAGS += -Y_gpp
31 endif
32
ff0ca33 @hungc Add support for recursive makefiles (builds for ARM and X86)
hungc authored
33 include $(MKFILES_ROOT)/qtargets.mk
34
35 #####################################
36 # Post-set make macros go here
37 #####################################
38
39 # Use the QNX build system's $(VARIANT_LIST) to determine whether to use
40 # debugging libraries, etc.
41 ifeq ($(filter g,$(VARIANT_LIST)),g)
42 CCFLAGS += -O0
43 else
44 # Non-debug build.
45 #
46 # Enable optimizations suitable for modern C++.
47 CCFLAGS += -O3
48 endif
Something went wrong with that request. Please try again.