Makefile 456 字节
Newer Older
1

2 3
FILES=					\
	test-hello			\
4
	test-stackprotector-all		\
5
	test-stackprotector		\
6
	test-libnuma
7

8 9
CC := $(CC) -MD

10 11 12 13 14 15
all: $(FILES)

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

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

16
test-hello:
17 18
	$(BUILD)

19 20 21
test-stackprotector-all:
	$(BUILD) -Werror -fstack-protector-all

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

25 26 27
test-libnuma:
	$(BUILD) -lnuma

28 29
-include *.d */*.d

30 31 32
###############################

clean:
33
	rm -f $(FILES) *.d