2015-09-23 18:33:57 +08:00
|
|
|
export srctree := $(abspath ../../../..)
|
2014-12-29 20:51:45 +08:00
|
|
|
export CC := gcc
|
|
|
|
export LD := ld
|
|
|
|
export AR := ar
|
|
|
|
|
2015-09-23 18:34:02 +08:00
|
|
|
ex:
|
|
|
|
|
2015-09-23 18:33:56 +08:00
|
|
|
include $(srctree)/tools/build/Makefile.include
|
|
|
|
|
2014-12-29 20:51:45 +08:00
|
|
|
ex: ex-in.o libex-in.o
|
|
|
|
gcc -o $@ $^
|
|
|
|
|
2015-09-23 18:34:02 +08:00
|
|
|
ex.%: fixdep FORCE
|
2014-12-29 20:51:45 +08:00
|
|
|
make -f $(srctree)/tools/build/Makefile.build dir=. $@
|
|
|
|
|
2015-09-23 18:34:02 +08:00
|
|
|
ex-in.o: fixdep FORCE
|
2014-12-29 20:51:45 +08:00
|
|
|
make $(build)=ex
|
|
|
|
|
2015-09-23 18:34:02 +08:00
|
|
|
libex-in.o: fixdep FORCE
|
2014-12-29 20:51:45 +08:00
|
|
|
make $(build)=libex
|
|
|
|
|
|
|
|
clean:
|
|
|
|
find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
|
|
|
|
rm -f ex ex.i ex.s
|
|
|
|
|
|
|
|
.PHONY: FORCE
|