summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-06 21:26:43 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-06 21:26:43 +0200
commitd986cd307bd8e85d96624cd53828854e1bad20ae (patch)
tree3d87d4ea6db7f7206e99e63df7c2405ce2cf9fe2 /Makefile
parented1acd9be46b4e3a4b0a7dbe3d56f483c2c38d00 (diff)
Add the yxml library test program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0286bfb..57b1738 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC = gcc
CFLAGS = -Wall -O2
-all: mxml ezxml
+all: mxml ezxml yxml
mxml: mxml.c
$(CC) $(CFLAGS) -lmxml -pthread -o mxml mxml.c
@@ -10,17 +10,23 @@ mxml: mxml.c
ezxml: ezxml.c ezxmllib.o
$(CC) $(CFLAGS) -o ezxml ezxml.c ezxmllib.o
+yxml: yxml.c yxmllib.o
+ $(CC) $(CFLAGS) -o yxml yxml.c yxmllib.o
+
ezxmllib.o: ezxmllib.c
+yxmllib.o: yxmllib.c
+
debug:
$(CC) $(CFLAGS) -g -lmxml -pthread -o mxml mxml.c
$(CC) $(CFLAGS) -g -o ezxml ezxml.c ezxmllib.o
+ $(CC) $(CFLAGS) -g -o yxml yxml.c yxmllib.o
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
clean:
- rm *.o mxml ezxml
+ rm *.o mxml ezxml yxml
.PHONY:
all