summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/test/fc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/pbproc/test/fc/Makefile')
-rw-r--r--cesar/mac/pbproc/test/fc/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/cesar/mac/pbproc/test/fc/Makefile b/cesar/mac/pbproc/test/fc/Makefile
new file mode 100644
index 0000000000..9e62562fad
--- /dev/null
+++ b/cesar/mac/pbproc/test/fc/Makefile
@@ -0,0 +1,32 @@
+BASE = ../../../..
+
+TARGET=sparc
+
+HOST_PROGRAMS = test_fc
+test_fc_SOURCES = test_fc.c
+test_fc_MODULES = lib mac/pbproc
+
+TARGET_PROGRAMS = test_fc_target
+test_fc_target_SOURCES = test_fc.c
+test_fc_target_MODULES = lib mac/pbproc
+
+mac_pbproc_MODULE_SOURCES = fc.c
+
+generic_h = obj/inc/generic.h
+beacon_h = obj/inc/beacon.h
+sof_h = obj/inc/sof.h
+sack_h = obj/inc/sack.h
+rts_cts_h = obj/inc/rts_cts.h
+sound_h = obj/inc/sound.h
+rsof_h = obj/inc/rsof.h
+
+gen_headers = $(generic_h) $(beacon_h) $(sof_h) $(sack_h) $(rts_cts_h) \
+ $(sound_h) $(rsof_h)
+CLEAN_FILES = $(gen_headers)
+
+include $(BASE)/common/make/top.mk
+
+$(call src2obj,src/test_fc.c,host): $(gen_headers)
+$(call src2obj,src/test_fc.c,target): $(gen_headers)
+obj/inc/%.h: src/%.txt src/generate-check.pl $(OBJ_INC_DIR_STAMP)
+ perl src/generate-check.pl $* $< > $@