Makefile 374 字节
Newer Older
1

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

7 8
CC := $(CC) -MD

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

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

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

15
test-hello:
16 17
	$(BUILD)

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

21 22 23
test-libnuma:
	$(BUILD) -lnuma

24 25
-include *.d */*.d

26 27 28
###############################

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