ifneq ($(KBUILD_EXTMOD),) # We only get here on kernels 2.6.0-2.6.9. # For newer kernels, Kbuild will be included directly by the kernel # build system. include $(src)/Kbuild else OCTASIC_OBJS:=$(shell ../oct612x/octasic-helper objects ../oct612x) OCTASIC_CFLAGS:=$(shell ../oct612x/octasic-helper cflags ../oct612x) -Wno-undef all: wct4xxp.o %.o: %.c $(CC) $(KFLAGS) $(OCTASIC_CFLAGS) -o $@ -c $< base.o: ../zaptel.h vpm450m.h wct4xxp.h vpm450m.o: vpm450m.h ../oct612x/include/oct6100api/oct6100_api.h firmware_oct6114-64d.o: OCT6114-64D.ima base.o @echo Making firmware object file for $< ../build_tools/make_firmware_object $< $@ base.o firmware_oct6114-128d.o: OCT6114-128D.ima base.o @echo Making firmware object file for $< ../build_tools/make_firmware_object $< $@ base.o wct4xxp.o: base.o vpm450m.o $(OCTASIC_OBJS) firmware_oct6114-64d.o firmware_oct6114-128d.o $(LD) -r -o $@ $^ clean: rm -f *.o rm -f $(OCTASIC_OBJS) endif