X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=cf5aa787de3e99e0d7adbad3449780114b8ece79;hb=e62ca4413e3d41f4def8595374d8a1937f749eeb;hp=3172b3dddcd9076d47de6b8695f20e33acd24da1;hpb=d8138f420420eaf84ee809a83cef35407bec5183;p=pspp diff --git a/Makefile b/Makefile index 3172b3dddc..cf5aa787de 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ -dump.o: CFLAGS = -std=gnu99 -Wall -Werror -g -D_GNU_SOURCE=1 -dump2.o: CFLAGS = -std=gnu99 -Wall -Werror -g -D_GNU_SOURCE=1 -Wno-unused -all: dump dump2 -dump: dump.o -dump2: dump2.o +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 u8-mbtouc.o +dump2: dump2.o u8-mbtouc.o +parse-xml: parse-xml.o