1#
2# Makefile for the soundmodem device driver.
3#
4# Note! Dependencies are done automagically by 'make dep', which also
5# removes any old dependencies. DON'T put your own dependencies here
6# unless it's something special (ie not a .c file).
7#
8# Note 2! The CFLAGS definitions are now inherited from the
9# parent makes..
10#
11
12O_TARGET	:= soundmodem.o
13
14obj-y		:= sm.o
15obj-$(CONFIG_SOUNDMODEM_SBC) += sm_sbc.o
16obj-$(CONFIG_SOUNDMODEM_WSS) += sm_wss.o
17obj-$(CONFIG_SOUNDMODEM_AFSK1200) += sm_afsk1200.o
18obj-$(CONFIG_SOUNDMODEM_AFSK2400_7) += sm_afsk2400_7.o
19obj-$(CONFIG_SOUNDMODEM_AFSK2400_8) += sm_afsk2400_8.o
20obj-$(CONFIG_SOUNDMODEM_AFSK2666) += sm_afsk2666.o
21obj-$(CONFIG_SOUNDMODEM_HAPN4800) += sm_hapn4800.o
22obj-$(CONFIG_SOUNDMODEM_PSK4800) += sm_psk4800.o
23obj-$(CONFIG_SOUNDMODEM_FSK9600) += sm_fsk9600.o
24
25obj-m		:= $(O_TARGET)
26
27all:		all_targets
28.PHONY:		all
29
30gentbl:		gentbl.c
31		$(HOSTCC) $(HOSTCFLAGS) $< -o $@ -lm
32
33TBLHDR		:= sm_tbl_afsk1200.h sm_tbl_afsk2400_8.h
34TBLHDR		+= sm_tbl_afsk2666.h sm_tbl_psk4800.h
35TBLHDR		+= sm_tbl_hapn4800.h sm_tbl_fsk9600.h
36
37$(TBLHDR):	gentbl
38		./gentbl
39
40fastdep:	$(TBLHDR)
41
42include $(TOPDIR)/Rules.make
43