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