1 # SPDX-License-Identifier: GPL-2.0 !! 1 ifndef CROSS_COMPILE 2 userprogs-always-y += hpet_example !! 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/) 3 4 4 userccflags += -I usr/include !! 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
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.