xref: /linux/tools/build/tests/ex/Makefile (revision b85d45947951d23cb22d90caecf4c1eb81342c96)
1export srctree := ../../../..
2export CC      := gcc
3export LD      := ld
4export AR      := ar
5
6build := -f $(srctree)/tools/build/Makefile.build dir=. obj
7ex: ex-in.o libex-in.o
8	gcc -o $@ $^
9
10ex.%: FORCE
11	make -f $(srctree)/tools/build/Makefile.build dir=. $@
12
13ex-in.o: FORCE
14	make $(build)=ex
15
16libex-in.o: FORCE
17	make $(build)=libex
18
19clean:
20	find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
21	rm -f ex ex.i ex.s
22
23.PHONY: FORCE
24