Jiri Olsa | 0c00c3f | 2015-09-23 12:33:57 +0200 | [diff] [blame] | 1 | export srctree := $(abspath ../../../..) |
Jiri Olsa | c819e2c | 2014-12-29 13:51:45 +0100 | [diff] [blame] | 2 | export CC := gcc |
3 | export LD := ld | ||||
4 | export AR := ar | ||||
5 | |||||
Jiri Olsa | 7c422f5 | 2015-09-23 12:34:02 +0200 | [diff] [blame] | 6 | ex: |
7 | |||||
Jiri Olsa | ab6201d | 2015-09-23 12:33:56 +0200 | [diff] [blame] | 8 | include $(srctree)/tools/build/Makefile.include |
9 | |||||
Jiri Olsa | c819e2c | 2014-12-29 13:51:45 +0100 | [diff] [blame] | 10 | ex: ex-in.o libex-in.o |
11 | gcc -o $@ $^ | ||||
12 | |||||
Jiri Olsa | 7c422f5 | 2015-09-23 12:34:02 +0200 | [diff] [blame] | 13 | ex.%: fixdep FORCE |
Jiri Olsa | c819e2c | 2014-12-29 13:51:45 +0100 | [diff] [blame] | 14 | make -f $(srctree)/tools/build/Makefile.build dir=. $@ |
15 | |||||
Jiri Olsa | 7c422f5 | 2015-09-23 12:34:02 +0200 | [diff] [blame] | 16 | ex-in.o: fixdep FORCE |
Jiri Olsa | c819e2c | 2014-12-29 13:51:45 +0100 | [diff] [blame] | 17 | make $(build)=ex |
18 | |||||
Jiri Olsa | 7c422f5 | 2015-09-23 12:34:02 +0200 | [diff] [blame] | 19 | libex-in.o: fixdep FORCE |
Jiri Olsa | c819e2c | 2014-12-29 13:51:45 +0100 | [diff] [blame] | 20 | make $(build)=libex |
21 | |||||
22 | clean: | ||||
23 | find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete | ||||
24 | rm -f ex ex.i ex.s | ||||
25 | |||||
26 | .PHONY: FORCE |