summaryrefslogtreecommitdiff
path: root/wct4xxp/Kbuild
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-27 02:02:42 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-27 02:02:42 +0000
commitff729b007e96a90d1d78b0271480779859d41b04 (patch)
tree34ae3b76710c3568412dcc983db1ce33e7984b34 /wct4xxp/Kbuild
parent059e0fa03c63025261ba8411132814046f5280f4 (diff)
merge in new, cleaner Octasic API integration
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1359 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp/Kbuild')
-rw-r--r--wct4xxp/Kbuild21
1 files changed, 21 insertions, 0 deletions
diff --git a/wct4xxp/Kbuild b/wct4xxp/Kbuild
new file mode 100644
index 0000000..8060a97
--- /dev/null
+++ b/wct4xxp/Kbuild
@@ -0,0 +1,21 @@
+# 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)/vpm450m_fw.h $(src)/vpm450m.h
+$(obj)/vpm450m.o: $(src)/../oct612x/include/oct6100api/oct6100_api.h
+
+$(obj)/vpm450m_fw.h: $(src)/OCT6114-128D.ima $(obj)/fw2h
+ $(obj)/fw2h $< $@
+
+clean-files := vpm450m_fw.h