summaryrefslogtreecommitdiff
path: root/kernel/wctdm24xxp/Makefile
blob: 9c4cd5141bd367ee9878ec1261384082a829f8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

all: wctdm24xxp.o

%.o: %.c
	$(CC) $(KFLAGS) -o $@ -c $<

base.o: ../zaptel.h GpakCust.h ../wctdm.h

GpakCust.o: GpakCust.h

../firmware/zaptel-fw-vpmadt032.o: base.o
	$(MAKE) -C ../firmware zaptel-fw-vpmadt032.o

wctdm24xxp.o: base.o GpakCust.o GpakApi.o ../firmware/zaptel-fw-vpmadt032.o
	$(LD) -r -o $@ $^

clean:
	rm -f *.o

endif