summaryrefslogtreecommitdiffstats
path: root/scripts/mod/Makefile
blob: 0e01d9fea6446485db4810984ef6e0c8fac31161 (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
PROGS = \
	modpost \
	modpost.real-lsb-32 \
	modpost.real-lsb-64 \
	modpost.real-msb-32 \
	modpost.real-msb-64

OUTDIR = scripts/mod

top_srcdir = ../..

include $(top_srcdir)/Makefile.inc

modpost.real-%:
	$(MAKE) -f Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/kbuild/scripts/mod

%: %.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

modpost.h: $(top_srcdir)/kbuild/scripts/mod/modpost.c
	python ./gendef.py $< > $@

modpost.o: modpost.c modpost.h

clean:
	rm -f modpost.h