summaryrefslogtreecommitdiff
path: root/ztcodec_dte/Makefile
blob: 0a4868b86d5bc45cb7926124c3769d9860e813f9 (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
ifneq ($(KBUILD_EXTMOD),)

include $(obj)/Kbuild

else

all: ztcodec_dte.o

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

base.o: ../zaptel.h 


firmware_dte.o: dte_firm.bin base.o
	@echo Making firmware object file for $<
	../build_tools/make_firmware_object $< $@ base.o

ztcodec_dte.o: base.o firmware_dte.o
	$(LD) -r -o $@ $^

clean:
	rm -f *.o

endif