summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-06 21:11:18 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-06 21:11:18 +0200
commited1acd9be46b4e3a4b0a7dbe3d56f483c2c38d00 (patch)
treeaf0c4e8e133474f69b24de86b41b2e5bd82fff62 /Makefile
parent8788c5857f7f46eb96350afd3f701bc1082356dd (diff)
Use more variables in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 02b3943..0286bfb 100644
--- a/Makefile
+++ b/Makefile
@@ -11,12 +11,14 @@ ezxml: ezxml.c ezxmllib.o
$(CC) $(CFLAGS) -o ezxml ezxml.c ezxmllib.o
ezxmllib.o: ezxmllib.c
- $(CC) $(CFLAGS) -c -o ezxmllib.o ezxmllib.c
debug:
$(CC) $(CFLAGS) -g -lmxml -pthread -o mxml mxml.c
$(CC) $(CFLAGS) -g -o ezxml ezxml.c ezxmllib.o
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+
clean:
rm *.o mxml ezxml