aboutsummaryrefslogtreecommitdiff
path: root/write-stm-device/Makefile
blob: 09c0437779f6100d484229188f31cf71c95bbaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CROSS_COMPILE	:= /home/zcy/tools/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/aarch64-linux-gnu-
CC				:= $(CROSS_COMPILE)gcc
CFLAGS			:= --static

STM_USER	= stm_sample_write

OBJS_STM_USER_API= example.o stm_user_api.o

all: $(STM_USER)

$(STM_USER):$(OBJS_STM_USER_API)
	$(CC) $(CFLAGS) -o $@ $^

clean:
	rm *.o $(STM_USER)