[Aceunit-commit] SF.net SVN: aceunit:[580] trunk/src/doc/examples/sort/Makefile
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2011-03-27 21:28:19
|
Revision: 580 http://aceunit.svn.sourceforge.net/aceunit/?rev=580&view=rev Author: christianhujer Date: 2011-03-27 21:28:13 +0000 (Sun, 27 Mar 2011) Log Message: ----------- Improve Makefile of the sort example. Modified Paths: -------------- trunk/src/doc/examples/sort/Makefile Modified: trunk/src/doc/examples/sort/Makefile =================================================================== --- trunk/src/doc/examples/sort/Makefile 2011-03-26 22:27:01 UTC (rev 579) +++ trunk/src/doc/examples/sort/Makefile 2011-03-27 21:28:13 UTC (rev 580) @@ -1,10 +1,30 @@ -ACE_UNIT_PATH=../../.. +# Path to AceUnit. +# Scope: local. +# Type: Single path. +ACE_UNIT_PATH:=../../.. + +# List of generated files. +# As a side effect, runs the AceUnit generator. +# Scope: local. +# Type: List of pathnames. GENERATED_FILES:=$(shell java -jar $(ACE_UNIT_PATH)/java/AceUnit.jar --print suites,headers .) + +# List of source files. +# Scope: local. +# Type: List of scource files. SOURCES:=AceUnitMain.c AceUnit.c AceUnitData.c FullPlainLogger.c $(wildcard *.c) $(filter %.c, $(GENERATED_FILES)) -CFLAGS=-W -Wall -pedantic -CPPFLAGS=-DACEUNIT_SUITES -I $(ACE_UNIT_PATH)/native +## Flags for the C compiler. +# Scope: External +# Type: Flags passed to the C compiler. +override CFLAGS+=-W -Wall -pedantic +## Flags for the C preprocessor. +# Scope: External. +# Type: Flags passed to all programs that do C preprocessing. +override CPPFLAGS+=-DACEUNIT_SUITES -I $(ACE_UNIT_PATH)/native + +# Sets the path where to find C source files. vpath %.c . $(ACE_UNIT_PATH)/native $(ACE_UNIT_PATH)/native/loggers all: AceUnitMain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |