summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2ccc9ea97bc6b613a8846f0cfdf645f267512b1d (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

.PHONY:
	all