summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-06-20 10:02:09 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-06-20 10:02:09 +0000
commit9b84fae9ca0c653ac91ab66765b6e9ff741cc168 (patch)
tree82a30227873ada5553f3245feec7a1432ed74de8 /Makefile
parentf916411a00578ebf3197d597db6d41fd451c05ef (diff)
support 2.4 kernel builds for new wct4xxp driver
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1133 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index da22bb0..1b1590e 100644
--- a/Makefile
+++ b/Makefile
@@ -181,8 +181,6 @@ devel: tor2ee
tests: patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest
-wct4xxp.o: wct4xxp_base.c vpm450m.c
-
tor2.o: tor2-hw.h tor2fw.h
zaptel.o: digits.h arith.h sec.h mec.h sec-2.h mec2.h mec3.h zconfig.h
@@ -201,8 +199,14 @@ pciradio.o: radfw.h
ztdummy.o: ztdummy.h
-$(MODULESO): %.o: %.c zaptel.h
- $(HOSTCC) $(KFLAGS) -o $@ -c $<
+$(filter-out wct4xxp.o,$(MODULESO)) wct4xxp_base.o: %.o: %.c zaptel.h
+ $(CC) $(KFLAGS) -o $@ -c $<
+
+vpm450m.o: vpm450m.c zaptel.h
+ $(CC) $(KFLAGS) -I$(PWD)/include -I$(PWD)/include/oct6100api -o $@ -c $<
+
+wct4xxp.o: wct4xxp_base.o vpm450m.o
+ $(LD) -r -o $@ wct4xxp_base.o vpm450m.o
tor2ee.o: tor2-hw.h