[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling and running a test tool
From: |
Sheldon Gill |
Subject: |
Compiling and running a test tool |
Date: |
Wed, 20 Sep 2006 21:47:35 +0800 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
Hi,
I can compile and run a test tool consisting of a single source file by
invoking "make test" using a GNUmakefile like this
include $(GNUSTEP_MAKEFILES)/common.make
foo_OBJC_FILES=foo.m
include $(GNUSTEP_MAKEFILES)/test-tool.make
test:
./obj/foo
which is pretty sweet. Trouble is, how do you extend this to a test tool which
is spread over multiple source files?
Or a test tool which depends on another tool build beforehand?
The obvious thing to try was:
thing_OBJC_FILES=foo.m bar.m
include $(GNUSTEP_MAKEFILES)/test-tool.make
test:
./obj/thing
but that doesn't work at all. Changing that depends to
test: thing
means it will all compile and link sweetly but won't be run.
It's getting late and my brain is slow.
Help anyone?
Regards,
Sheldon
- Compiling and running a test tool,
Sheldon Gill <=