summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-13 09:58:16 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-13 09:58:16 +0100
commiteb0978fffe5d17f085a441faf68cedc24eea04e1 (patch)
tree46609bea48abf09f2221d52456fa9509c722f731 /Makefile
parentd99c2bd404e3a8c56042ef8679987ed8af8e3801 (diff)
downloadqemu-security-eb0978fffe5d17f085a441faf68cedc24eea04e1.tar.gz
split pci and cirrus code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 05b84cd..af9d16c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,17 @@ CC ?= gcc
CFLAGS ?= -Os -g
CFLAGS += -Wall
-SOURCES := $(wildcard *.c)
-TARGETS := $(patsubst %.c,%,$(SOURCES))
+CVETEST := cve-2016-3712
+PCITEST := cve-2017-2615
+TARGETS := $(CVETEST) $(PCITEST)
-cve-2017-2615 : CFLAGS += $(shell pkg-config --cflags libpci)
-cve-2017-2615 : LDLIBS += $(shell pkg-config --libs libpci)
+$(PCITEST) : CFLAGS += $(shell pkg-config --cflags libpci)
+$(PCITEST) : LDLIBS += $(shell pkg-config --libs libpci)
all: $(TARGETS)
clean:
rm -f $(TARGETS)
rm -f *~ *.o
+
+cve-2017-2615: cve-2017-2615.o pci.o cirrus.o