Commit 8f8e9b1d authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Correct dependencies for generated soundmodem tables

Build the headers only when we need them during the build, not always
at 'make dep' time.
parent d96cff65
...@@ -16,19 +16,19 @@ soundmodem-$(CONFIG_SOUNDMODEM_PSK4800) += sm_psk4800.o ...@@ -16,19 +16,19 @@ soundmodem-$(CONFIG_SOUNDMODEM_PSK4800) += sm_psk4800.o
soundmodem-$(CONFIG_SOUNDMODEM_FSK9600) += sm_fsk9600.o soundmodem-$(CONFIG_SOUNDMODEM_FSK9600) += sm_fsk9600.o
soundmodem-objs := $(soundmodem-y) soundmodem-objs := $(soundmodem-y)
all: all_targets include $(TOPDIR)/Rules.make
.PHONY: all
gentbl: gentbl.c # Dependencies on generates files need to be listed explicitly
$(HOSTCC) $(HOSTCFLAGS) $< -o $@ -lm
sm_%.o: sm_tbl_%.h
TBLHDR := sm_tbl_afsk1200.h sm_tbl_afsk2400_8.h TBLHDR := sm_tbl_afsk1200.h sm_tbl_afsk2400_7.h sm_tbl_afsk2400_8.h \
TBLHDR += sm_tbl_afsk2666.h sm_tbl_psk4800.h sm_tbl_afsk2666.h sm_tbl_psk4800.h sm_tbl_hapn4800.h \
TBLHDR += sm_tbl_hapn4800.h sm_tbl_fsk9600.h sm_tbl_fsk9600.h
$(TBLHDR): gentbl $(TBLHDR): gentbl
./gentbl ./gentbl
fastdep: $(TBLHDR) gentbl: gentbl.c
$(HOSTCC) $(HOSTCFLAGS) $< -o $@ -lm
include $(TOPDIR)/Rules.make
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment