1 # SPDX-License-Identifier: GPL-2.0 << 2 export srctree := $(abspath ../../../..) 1 export srctree := $(abspath ../../../..) 3 export CC := gcc 2 export CC := gcc 4 export LD := ld 3 export LD := ld 5 export AR := ar 4 export AR := ar 6 5 7 ex: 6 ex: 8 7 9 include $(srctree)/tools/build/Makefile.includ 8 include $(srctree)/tools/build/Makefile.include 10 9 11 ex: ex-in.o libex-in.o 10 ex: ex-in.o libex-in.o 12 $(CC) -o $@ $^ !! 11 gcc -o $@ $^ 13 12 14 ex.%: fixdep FORCE 13 ex.%: fixdep FORCE 15 make -f $(srctree)/tools/build/Makefil 14 make -f $(srctree)/tools/build/Makefile.build dir=. $@ 16 15 17 ex-in.o: fixdep FORCE 16 ex-in.o: fixdep FORCE 18 make $(build)=ex 17 make $(build)=ex 19 18 20 libex-in.o: fixdep FORCE 19 libex-in.o: fixdep FORCE 21 make $(build)=libex 20 make $(build)=libex 22 21 23 clean: 22 clean: 24 find . -name '*.o' -delete -o -name '\ 23 find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete 25 rm -f ex ex.i ex.s 24 rm -f ex ex.i ex.s 26 25 27 .PHONY: FORCE 26 .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.