Makefile 645 字节
Newer Older
1

2 3
FILES=					\
	test-hello			\
4
	test-stackprotector-all		\
5
	test-stackprotector		\
6
	test-volatile-register-var	\
7
	test-fortify-source		\
8
	test-libnuma
9

10 11
CC := $(CC) -MD

12 13 14 15 16 17
all: $(FILES)

BUILD = $(CC) -o $(OUTPUT)$@ $@.c

###############################

18
test-hello:
19 20
	$(BUILD)

21 22 23
test-stackprotector-all:
	$(BUILD) -Werror -fstack-protector-all

24 25 26
test-stackprotector:
	$(BUILD) -Werror -fstack-protector

27 28 29
test-volatile-register-var:
	$(BUILD) -Werror -Wvolatile-register-var

30 31 32
test-fortify-source:
	$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2

33 34 35
test-libnuma:
	$(BUILD) -lnuma

36 37
-include *.d */*.d

38 39 40
###############################

clean:
41
	rm -f $(FILES) *.d
新手
引导
客服 返回
顶部