2017-09-12 15:18:29 +05:30
|
|
|
CFLAGS= -Ofast -I"include"
|
|
|
|
BIN=cts
|
|
|
|
|
|
|
|
all: main
|
|
|
|
|
2022-02-17 09:49:33 +05:30
|
|
|
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)
|
|
|
|
|
2017-09-12 15:18:29 +05:30
|
|
|
main: main.o
|
|
|
|
gcc colors.o dbquery.o main.o -lsqlite3 -o $(BIN)
|
|
|
|
|
|
|
|
main.o: dbquery.o src/main.c
|
|
|
|
gcc -c src/main.c $(CFLAGS)
|
|
|
|
|
|
|
|
dbquery.o: colors.o src/dbquery.c
|
|
|
|
gcc -c src/dbquery.c $(CFLAGS)
|
|
|
|
|
|
|
|
colors.o: src/colors.c
|
|
|
|
gcc -c src/colors.c $(CFLAGS)
|
|
|
|
|
|
|
|
testcolor: src/colors.c src/tcolor.c
|
|
|
|
gcc src/colors.c src/tcolor.c -o tcolor -I"includes" -g
|
|
|
|
|
|
|
|
clean:
|
2022-02-09 09:02:36 +05:30
|
|
|
rm *.o
|