blob: e621e957a4bda4410b8606f78634dcd3fcabeca3 (
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
33
34
35
36
37
|
CC = gcc
CFLAGS = -Wall -O2
all: mxml ezxml yxml sxmlc
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
sxmlc: sxmlc.c sxmlclib.o
$(CC) $(CFLAGS) -o sxmlc sxmlc.c sxmlclib.o
ezxmllib.o: ezxmllib.c
yxmllib.o: yxmllib.c
sxmlclib.o: sxmlclib.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
|