planetdump: Verify we can connect to DB before we do anything else
[planetdump.git] / Makefile
index 17fd7d9..031d08d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,16 @@ MYSQL_LDFLAGS += $(shell mysql_config --libs)
 
 .PHONY: all clean
 
-all: planet UTF8Sanitizer
+all: planet05 planet06 UTF8Sanitizer
 
 clean:
-       rm -f UTF8Sanitizer planet
+       rm -f UTF8Sanitizer planet05 planet06
 
-planet: planet.c keyvals.c
-       $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -DSCHEMA_V6 -o $@ $^
+planet05: planet05.c keyvals.c
+       $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
+
+planet06: planet06.c keyvals.c
+       $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
 
 UTF8Sanitizer: UTF8sanitizer.c
        $(CC) UTF8sanitizer.c -o UTF8Sanitizer