summaryrefslogtreecommitdiff
path: root/wct4xxp
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-27 02:27:23 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-27 02:27:23 +0000
commit8f8d37575ef7e1227f2a663e3f3de286aa4020b6 (patch)
tree41ca872aa8ec2d05beeaf6ad6dd57a562b93bd3c /wct4xxp
parent8f779efcad4bb45425eefc0750175f12c156f08b (diff)
ok... finally, this actually does build correctly for 2.4 kernels
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1363 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp')
-rw-r--r--wct4xxp/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/wct4xxp/Makefile b/wct4xxp/Makefile
index 3772fc9..aea3d12 100644
--- a/wct4xxp/Makefile
+++ b/wct4xxp/Makefile
@@ -4,15 +4,19 @@ include $(obj)/Kbuild
else
+OCTASIC_OBJS:=$(shell ../oct612x/octasic-helper objects ../oct612x)
+OCTASIC_CFLAGS:=$(shell ../oct612x/octasic-helper cflags ../oct612x) -Wno-undef
+
all: wct4xxp.o
-base.o: base.c ../zaptel.h vpm450m.h wct4xxp.h
- $(CC) $(KFLAGS) -o $@ -c $<
+%.o: %.c
+ $(CC) $(KFLAGS) $(OCTASIC_CFLAGS) -o $@ -c $<
+
+base.o: ../zaptel.h vpm450m.h wct4xxp.h
-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 $<
+vpm450m.o: vpm450m.h vpm450m_fw.h ../oct612x/include/oct6100api/oct6100_api.h
-wct4xxp.o: base.o vpm450m.o $(shell ../oct612x/octasic-helper objects ../oct612x)
+wct4xxp.o: base.o vpm450m.o $(OCTASIC_OBJS)
$(LD) -r -o $@ $^
fw2h: CFLAGS=
@@ -23,5 +27,6 @@ vpm450m_fw.h: OCT6114-128D.ima fw2h
clean:
rm -f *.o fw2h
rm -f vpm450m_fw.h
+ rm -f $(OCTASIC_OBJS)
endif