Makefile 266 B

12345678910111213141516
  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. ifeq ($(ARCH),x86)
  5. CC := $(CROSS_COMPILE)gcc
  6. PROGS := hpet_example
  7. all: $(PROGS)
  8. clean:
  9. rm -fr $(PROGS)
  10. endif
  11. endif