Makefile (498495dba268b20e8eadd7fe93c140c68b6cc9d2) Makefile (b98ccc7150c7bfce60671ad1928d5f1220446b39)
1# SPDX-License-Identifier: GPL-2.0
1# SPDX-License-Identifier: GPL-2.0
2ifndef CROSS_COMPILE
3uname_M := $(shell uname -m 2>/dev/null || echo not)
4ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
2userprogs := hpet_example
3always-y := $(userprogs)
5
4
6ifeq ($(ARCH),x86)
7CC := $(CROSS_COMPILE)gcc
8PROGS := hpet_example
9
10all: $(PROGS)
11
12clean:
13 rm -fr $(PROGS)
14
15endif
16endif
5userccflags += -I usr/include