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