diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-09-06 21:11:18 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-09-06 21:11:18 +0200 |
commit | ed1acd9be46b4e3a4b0a7dbe3d56f483c2c38d00 (patch) | |
tree | af0c4e8e133474f69b24de86b41b2e5bd82fff62 | |
parent | 8788c5857f7f46eb96350afd3f701bc1082356dd (diff) |
Use more variables in Makefile
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |