1234567891011121314151617181920212223242526272829303132 |
- CFLAGS= -Ofast -I"include"
- BIN=cts
- all: main
- 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)
- colors4python:
- gcc $(CFLAGS) src/colors.c -o colors -DCOLORS4PYTHON
- 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:
- rm *.o
|