summaryrefslogtreecommitdiffstats
path: root/drivers/char/hfmodem/Makefile
blob: 2219cd52e570717d3a739f64dc66fa0d66c06d20 (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
28
29
30
31
32
33
34
35
36
37
#
# Makefile for the hfmodem device driver.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now inherited from the
# parent makes..
#

O_TARGET	:= hfmodem.o

O_OBJS		:= refclock.o modem.o main.o
ifeq ($(CONFIG_HFMODEM_SBC),y)
O_OBJS		+= sbc.o
endif
ifeq ($(CONFIG_HFMODEM_WSS),y)
O_OBJS		+= wss.o
endif

M_OBJS		:= $(O_TARGET)

all:		all_targets
.PHONY:		all

gentbl:		gentbl.c
		$(HOSTCC) $(HOSTCFLAGS) $< -o $@ -lm

TBLHDR		:= tables.h

tables.h:	gentbl
		./gentbl > $@

fastdep:	$(TBLHDR)

include $(TOPDIR)/Rules.make