From ed1acd9be46b4e3a4b0a7dbe3d56f483c2c38d00 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 6 Sep 2016 21:11:18 +0200 Subject: Use more variables in Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1-18-gbd029