summaryrefslogtreecommitdiff
path: root/Makefile
blob: 682d0fb78faa0c78242c0218e3136670358bfeb3 (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
38
39
40
41
CC = gcc
CFLAGS = -Wall -O2


all: mxml ezxml yxml sxmlc goencxml

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

goencxml: goencxml.go
	go build goencxml.go

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
	$(CC) $(CFLAGS) -g -o sxmlc sxmlc.c sxmlclib.o

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm *.o mxml ezxml yxml sxmlc goencxml

.PHONY:
	all