1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 export srctree := $(abspath ../../../..) 2 export srctree := $(abspath ../../../..) 3 export CC := gcc 3 export CC := gcc 4 export LD := ld 4 export LD := ld 5 export AR := ar 5 export AR := ar 6 6 7 ex: 7 ex: 8 8 9 include $(srctree)/tools/build/Makefile.includ 9 include $(srctree)/tools/build/Makefile.include 10 10 11 ex: ex-in.o libex-in.o 11 ex: ex-in.o libex-in.o 12 $(CC) -o $@ $^ 12 $(CC) -o $@ $^ 13 13 14 ex.%: fixdep FORCE 14 ex.%: fixdep FORCE 15 make -f $(srctree)/tools/build/Makefil 15 make -f $(srctree)/tools/build/Makefile.build dir=. $@ 16 16 17 ex-in.o: fixdep FORCE 17 ex-in.o: fixdep FORCE 18 make $(build)=ex 18 make $(build)=ex 19 19 20 libex-in.o: fixdep FORCE 20 libex-in.o: fixdep FORCE 21 make $(build)=libex 21 make $(build)=libex 22 22 23 clean: 23 clean: 24 find . -name '*.o' -delete -o -name '\ 24 find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete 25 rm -f ex ex.i ex.s 25 rm -f ex ex.i ex.s 26 26 27 .PHONY: FORCE 27 .PHONY: FORCE
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.