CC = gcc CFLAGS = -Wall -O2 all: mxml ezxml mxml: mxml.c $(CC) $(CFLAGS) -lmxml -pthread -o mxml mxml.c 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 clean: rm *.o mxml ezxml .PHONY: all