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