19 lines
264 B
Makefile
19 lines
264 B
Makefile
CC = gcc
|
|
CFLAGS = -O3
|
|
LIBS = -lcjson
|
|
EXEC = mc-libs-string
|
|
|
|
all: $(EXEC)
|
|
|
|
$(EXEC):
|
|
$(CC) $(CFLAGS) -o $(EXEC) ./src/main.c $(LIBS)
|
|
|
|
tcc:
|
|
tcc -O3 -o $(EXEC) ./src/main.c $(LIBS)
|
|
|
|
tcc-static:
|
|
tcc -O3 -o $(EXEC) ./src/main.c ./cJSON/libcjson.a
|
|
|
|
clean:
|
|
rm $(EXEC)
|