summaryrefslogtreecommitdiff
path: root/cesar/cp
diff options
context:
space:
mode:
authorDavid Mercadie2011-03-31 19:28:30 +0200
committerDavid Mercadie2011-04-07 15:12:05 +0200
commitf1721ad911abcb23f1836cc3b0a390a1a306f236 (patch)
tree6412a331c5711b7467e781bfbe1d59112d26c07d /cesar/cp
parentce1fd0c27bfb61a4006383b3d14e1444646a25e2 (diff)
cesar/cp/beacon/test: make all tests with a single make command
Diffstat (limited to 'cesar/cp')
-rw-r--r--cesar/cp/beacon/test/Makefile32
-rw-r--r--cesar/cp/beacon/test/Makefile-ecos27
-rw-r--r--cesar/cp/beacon/test/Makefile-scenario6
3 files changed, 36 insertions, 29 deletions
diff --git a/cesar/cp/beacon/test/Makefile b/cesar/cp/beacon/test/Makefile
index 74b94930a6..835aa57bf0 100644
--- a/cesar/cp/beacon/test/Makefile
+++ b/cesar/cp/beacon/test/Makefile
@@ -1,27 +1,7 @@
-BASE = ../../..
+all:
+ make -f Makefile-scenario
+ make -f Makefile-ecos
-INCLUDES = cp/beacon/test/override
-
-ECOS = y
-
-TARGET_PROGRAMS = beacon discover_process
-
-beacon_SOURCES = beacon.c \
- ca_stub.c secu_stub.c bsu_stub.c phy_stub.c
-beacon_MODULES = bsu/beacon lib cp/beacon cp/sta/mgr mac/common cp/cco/bw \
- cp/cco/region \
- cp/fsm/stub cp/cco/action/stub hal/timer/stub \
- cp/sta/core/stub mac/sar/stub cl/stub \
- interface/stub bsu/stub cp/msg/stub
-
-discover_process_SOURCES = discover.c \
- ca_stub.c secu_stub.c bsu_stub.c phy_stub.c
-discover_process_MODULES = lib cp/beacon mac/common cp/sta/mgr \
- bsu/beacon cp/cco/region \
- cp/fsm/stub cp/cco/action/stub hal/timer/stub \
- cp/sta/core/stub mac/sar/stub cl/stub cp/cco/bw \
- interface/stub bsu/stub cp/msg/stub
-
-mac_common_MODULE_SOURCES = config.c mfs.c store.c tonemap.c tonemask.c sta.c
-
-include $(BASE)/common/make/top.mk
+clean:
+ make clean -f Makefile-scenario
+ make clean -f Makefile-ecos
diff --git a/cesar/cp/beacon/test/Makefile-ecos b/cesar/cp/beacon/test/Makefile-ecos
new file mode 100644
index 0000000000..74b94930a6
--- /dev/null
+++ b/cesar/cp/beacon/test/Makefile-ecos
@@ -0,0 +1,27 @@
+BASE = ../../..
+
+INCLUDES = cp/beacon/test/override
+
+ECOS = y
+
+TARGET_PROGRAMS = beacon discover_process
+
+beacon_SOURCES = beacon.c \
+ ca_stub.c secu_stub.c bsu_stub.c phy_stub.c
+beacon_MODULES = bsu/beacon lib cp/beacon cp/sta/mgr mac/common cp/cco/bw \
+ cp/cco/region \
+ cp/fsm/stub cp/cco/action/stub hal/timer/stub \
+ cp/sta/core/stub mac/sar/stub cl/stub \
+ interface/stub bsu/stub cp/msg/stub
+
+discover_process_SOURCES = discover.c \
+ ca_stub.c secu_stub.c bsu_stub.c phy_stub.c
+discover_process_MODULES = lib cp/beacon mac/common cp/sta/mgr \
+ bsu/beacon cp/cco/region \
+ cp/fsm/stub cp/cco/action/stub hal/timer/stub \
+ cp/sta/core/stub mac/sar/stub cl/stub cp/cco/bw \
+ interface/stub bsu/stub cp/msg/stub
+
+mac_common_MODULE_SOURCES = config.c mfs.c store.c tonemap.c tonemask.c sta.c
+
+include $(BASE)/common/make/top.mk
diff --git a/cesar/cp/beacon/test/Makefile-scenario b/cesar/cp/beacon/test/Makefile-scenario
index 58851efaaf..b0978757d2 100644
--- a/cesar/cp/beacon/test/Makefile-scenario
+++ b/cesar/cp/beacon/test/Makefile-scenario
@@ -2,12 +2,12 @@ BASE = ../../..
INCLUDES = cp/beacon/test/override-scenario cp/beacon/test
-HOST_PROGRAMS = beacon_fsm
+HOST_PROGRAMS = beacon_scenario
-beacon_fsm_SOURCES = beacon_scenario.c scenario_actions.c bsu_stub_scenario.c \
+beacon_scenario_SOURCES = beacon_scenario.c scenario_actions.c bsu_stub_scenario.c \
bsu_beacon_stub.c fsm_stub.c phy_stub.c secu_stub.c sta_mgr_stub.c
-beacon_fsm_MODULES = lib lib/scenario cp/fsm/stub cp/beacon \
+beacon_scenario_MODULES = lib lib/scenario cp/fsm/stub cp/beacon \
cp/cco/region/stub cp/cco/bw/stub interface/stub \
bsu/stub cp/msg/stub cp/sta/core/stub hal/timer/stub \
mac/sar/stub cl/stub cp/cco/action/stub