summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 05b84cd989841d95535acc5771dc19ea4ddcf5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

CC	?= gcc
CFLAGS	?= -Os -g
CFLAGS	+= -Wall

SOURCES	:= $(wildcard *.c)
TARGETS	:= $(patsubst %.c,%,$(SOURCES))

cve-2017-2615 : CFLAGS += $(shell pkg-config --cflags libpci)
cve-2017-2615 : LDLIBS += $(shell pkg-config --libs libpci)

all: $(TARGETS)

clean:
	rm -f $(TARGETS)
	rm -f *~ *.o