Shuah Khan | 155fe00 | 2016-09-16 17:20:42 -0600 | [diff] [blame] | 1 | ifndef CROSS_COMPILE |
2 | uname_M := $(shell uname -m 2>/dev/null || echo not) | ||||
3 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) | ||||
4 | |||||
5 | ifeq ($(ARCH),x86) | ||||
6 | CC := $(CROSS_COMPILE)gcc | ||||
7 | PROGS := hpet_example | ||||
8 | |||||
9 | all: $(PROGS) | ||||
10 | |||||
11 | clean: | ||||
12 | rm -fr $(PROGS) | ||||
13 | |||||
14 | endif | ||||
15 | endif |