Added make file.
This commit is contained in:
parent
0fb8977c94
commit
ebb835f24e
18
makefile
Normal file
18
makefile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
CFLAGS= -Ofast
|
||||||
|
|
||||||
|
all: cts tcolor
|
||||||
|
|
||||||
|
cts: main.o
|
||||||
|
gcc colors.o sqlite3.o dbquery.o main.o -o cts
|
||||||
|
|
||||||
|
main.o: dbquery.o main.c
|
||||||
|
gcc -c main.c -I"includes" $(CFLAGS)
|
||||||
|
|
||||||
|
dbquery.o: colors.o includes/dbquery.c
|
||||||
|
gcc -c includes/dbquery.c $(CFLAGS)
|
||||||
|
|
||||||
|
colors.o: includes/colors.c
|
||||||
|
gcc -c includes/colors.c $(CFLAGS)
|
||||||
|
|
||||||
|
tcolor: includes/colors.c tcolor.c
|
||||||
|
gcc includes/colors.c tcolor.c -o tcolor -I"includes" -g
|
Loading…
Reference in New Issue
Block a user