diff options
Diffstat (limited to 'wct4xxp/Makefile')
-rw-r--r-- | wct4xxp/Makefile | 27 |
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 |