treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / build / tests / ex / Makefile
blobfee032e06a856a4938678d8b094847ea38a572f2
1 # SPDX-License-Identifier: GPL-2.0
2 export srctree := $(abspath ../../../..)
3 export CC := gcc
4 export LD := ld
5 export AR := ar
7 ex:
9 include $(srctree)/tools/build/Makefile.include
11 ex: ex-in.o libex-in.o
12 $(CC) -o $@ $^
14 ex.%: fixdep FORCE
15 make -f $(srctree)/tools/build/Makefile.build dir=. $@
17 ex-in.o: fixdep FORCE
18 make $(build)=ex
20 libex-in.o: fixdep FORCE
21 make $(build)=libex
23 clean:
24 find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
25 rm -f ex ex.i ex.s
27 .PHONY: FORCE