rename new planet code to planet06 to avoid confusion about versions
[planetdump.git] / Makefile
1 MYSQL_CFLAGS += -g -O2 -Wall
2 MYSQL_CFLAGS += $(shell mysql_config --cflags)
3
4 MYSQL_LDFLAGS += $(shell mysql_config --libs)
5
6 .PHONY: all clean
7
8 all: planet05 planet06 UTF8Sanitizer
9
10 clean:
11         rm -f UTF8Sanitizer planet05 planet06
12
13 planet05: planet05.c keyvals.c
14         $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
15
16 planet06: planet06.c keyvals.c
17         $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
18
19 UTF8Sanitizer: UTF8sanitizer.c
20         $(CC) UTF8sanitizer.c -o UTF8Sanitizer
21
22