summaryrefslogtreecommitdiff
path: root/Makefile
blob: 57b173858b305b4375eec974da43a8eb0c856148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CC = gcc
CFLAGS = -Wall -O2


all: mxml ezxml yxml

mxml: mxml.c
	$(CC) $(CFLAGS) -lmxml -pthread -o 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 yxml

.PHONY:
	all