summaryrefslogtreecommitdiff
path: root/wct4xxp/Kbuild
blob: 218eaf5de7846b5b5d915c32f74bcaa937dc1682 (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
# yes, this is redundant... the Kbuild system is changing to hostprogs-y,
# but we need to be able to support older verions as well
host-progs := fw2h
hostprogs-y := fw2h

obj-m += wct4xxp.o

EXTRA_CFLAGS := -I$(src)/.. $(shell $(src)/../oct612x/octasic-helper cflags $(src)/../oct612x) -Wno-undef

wct4xxp-objs := base.o vpm450m.o $(shell $(src)/../oct612x/octasic-helper objects ../oct612x)

$(obj)/base.o: $(src)/vpm450m.h $(src)/wct4xxp.h
$(obj)/base.o: $(src)/../zaptel.h

$(obj)/vpm450m.o: $(obj)/vpmoct128_fw.h $(obj)/vpmoct064_fw.h $(src)/vpm450m.h
$(obj)/vpm450m.o: $(src)/../oct612x/include/oct6100api/oct6100_api.h

$(obj)/vpmoct128_fw.h: $(src)/OCT6114-128D.ima $(obj)/fw2h
	$(obj)/fw2h $< $@

$(obj)/vpmoct064_fw.h: $(src)/OCT6114-64D.ima $(obj)/fw2h
	$(obj)/fw2h $< $@

clean-files := vpmoct128_fw.h vpmoct064_fw.h