simplify the code to remove pre-calculated length
[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: planet UTF8Sanitizer
9
10 clean:
11         rm -f UTF8Sanitizer planet
12
13 planet: planet.c keyvals.c
14         $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
15
16 UTF8Sanitizer: UTF8sanitizer.c
17         $(CC) UTF8sanitizer.c -o UTF8Sanitizer
18
19