summaryrefslogtreecommitdiff
path: root/wct4xxp/Makefile
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/Makefile
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/Makefile')
-rw-r--r--wct4xxp/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/wct4xxp/Makefile b/wct4xxp/Makefile
new file mode 100644
index 0000000..6d992a7
--- /dev/null
+++ b/wct4xxp/Makefile
@@ -0,0 +1,27 @@
+ifneq ($(KBUILD_EXTMOD),)
+
+include $(obj)/Kbuild
+
+else
+
+all: wct4xxp.o
+
+base.o: base.c ../zaptel.h vpm450m.h wct4xxp.h
+ $(CC) $(KFLAGS) -o $@ -c $<
+
+vpm450m.o: vpm450m.c vpm450m.h vpm450m_fw.h ../oct612x/include/oct6100api/oct6100_api.h
+ $(CC) $(KFLAGS) $(shell ../oct612x/octasic-helper cflags ../oct612x) -Wno-undef -o $@ -c $<
+
+wct4xxp.o: base.o vpm450m.o
+ $(LD) -r -o $@ $^
+
+fw2h: CFLAGS=
+
+vpm450m_fw.h: OCT6114-128D.ima fw2h
+ ./fw2h $< $@
+
+clean:
+ rm -f *.o fw2h
+ rm -f vpm450m_fw.h
+
+endif