summaryrefslogtreecommitdiff
path: root/tools/uintr/sample/Makefile
blob: 1f5042ba5d5d818dc22e24afe718cae419665ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC		= $(CROSS_COMPILE)gcc
BUILD_OUTPUT	:= $(CURDIR)
PREFIX		?= /usr
DESTDIR		?=

ifeq ("$(origin O)", "command line")
	BUILD_OUTPUT := $(O)
endif

uipi_sample : uipi_sample.c

CFLAGS +=       -Wall -static -muintr -mgeneral-regs-only -minline-all-stringops
LDFLAGS +=      -lpthread
%: %.c
	@mkdir -p $(BUILD_OUTPUT)
	$(CC) $(CFLAGS) $< $(LDFLAGS) -o $(BUILD_OUTPUT)/$@

all: uipi_sample

.PHONY : clean
clean :
	@rm -f $(BUILD_OUTPUT)/uipi_sample