X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=284a8e72fa31a77e92c97b7c53b59328d1ea63ee;hb=c5de9e3e53800a63a035b511dad9c577925867a0;hp=5a0f07c4d1bfa4e4f0f36c8ca72f6ced2b15d501;hpb=a4d9d8bbad937207bdbc70596b71d25335d0faa3;p=pspp diff --git a/Makefile b/Makefile index 5a0f07c4d1..284a8e72fa 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,11 @@ -CFLAGS = -std=gnu99 -Wall -Werror -g -D_GNU_SOURCE=1 +CFLAGS := -std=gnu99 -Wall -Werror -g -D_GNU_SOURCE=1 +base_cflags := $(CFLAGS) +base_ldflags := $(LDFLAGS) +parse-xml.o: CFLAGS := $(shell pkg-config --cflags libxml-2.0) $(base_cflags) +parse-xml: LDFLAGS := $(shell pkg-config --libs libxml-2.0) $(LDFLAGS) +dump2.o: CFLAGS := $(base_cflags) -Wno-unused + +all: dump dump2 parse-xml dump: dump.o +dump2: dump2.o +parse-xml: parse-xml.o