|
@@ -1,17 +1,20 @@
|
|
|
CFLAGS= -Ofast -I"include"
|
|
|
BIN=cts
|
|
|
|
|
|
-all: cgi colors4python staticgen
|
|
|
+all: colors4python staticgen
|
|
|
|
|
|
+# build for static page generator
|
|
|
staticgen: colors.o src/dbquery.c
|
|
|
echo "\nCompiling executable as static page generator\n"
|
|
|
gcc -c src/dbquery.c $(CFLAGS) -DSTATICGEN
|
|
|
gcc -c src/main.c $(CFLAGS) -DSTATICGEN
|
|
|
gcc colors.o dbquery.o main.o -lsqlite3 -o $(BIN)
|
|
|
|
|
|
+# used by python script to colorize names (html)
|
|
|
colors4python:
|
|
|
gcc $(CFLAGS) src/colors.c -o colors -DCOLORS4PYTHON
|
|
|
|
|
|
+# build fro cgi
|
|
|
cgi: main.o
|
|
|
gcc colors.o dbquery.o main.o -lsqlite3 -o $(BIN)
|
|
|
|