summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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