4 CFLAGS
+= $(shell pkg-config
--cflags libxml-2.0
)
5 LDLIBS
+= $(shell pkg-config
--libs libxml-2.0
)
7 all: testAll xml-reader.o
9 testAll
: xml-writer.o error.o test-marshal.o main.o xml-reader.o
10 $(CC
) -o testAll
$^
$(LDLIBS
)
12 xml-writer.o
: xml-writer.c error.h marshal.h xml-writer.h
14 xml-reader.o
: xml-reader.c error.h marshal.h xml-reader.h
16 error.o
: error.c error.h
18 test-marshal.o
: test-marshal.h
test.h marshal.h test-marshal.c
21 .
/qemu-gen-marshal
$^
$@
24 .
/qemu-gen-marshal
--header
$^
$@
26 main.o
: main.c xml-writer.h test-marshal.h
29 $(RM
) *.o
*~
*-marshal.
[ch
] test.xml testAll
*.pyc