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