Get rid of string type and replace with a bool type
[fidl.git] / Makefile
blob36bd650a2e5820bc3cc6657b548a4b6f54a2bd1f
1 CC=gcc
2 CFLAGS = -g -Wall -O
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
20 %-marshal.c: %.h
21 ./qemu-gen-marshal $^ $@
23 %-marshal.h: %.h
24 ./qemu-gen-marshal --header $^ $@
26 main.o: main.c xml-writer.h test-marshal.h
28 clean:
29 $(RM) *.o *~ *-marshal.[ch] test.xml testAll *.pyc