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