summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/test/fc/Makefile
blob: 9e62562fad2eb359d2f1a3a9ef9ec98d1b90062d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 $* $< > $@