2023-07-31 17:34:43 +03:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -O3
|
2022-06-27 16:13:34 +03:00
|
|
|
LIBS = -lcjson
|
2023-07-31 18:05:20 +03:00
|
|
|
EXEC = mc-libs-string
|
2022-06-05 02:56:46 +03:00
|
|
|
|
2023-07-31 18:05:20 +03:00
|
|
|
all: $(EXEC)
|
2022-06-05 02:56:46 +03:00
|
|
|
|
2023-07-31 18:05:20 +03:00
|
|
|
$(EXEC):
|
|
|
|
$(CC) $(CFLAGS) -o $(EXEC) ./src/main.c $(LIBS)
|
2022-06-27 16:13:34 +03:00
|
|
|
|
2023-07-31 17:36:48 +03:00
|
|
|
tcc:
|
2023-07-31 18:10:34 +03:00
|
|
|
tcc -O3 -o $(EXEC) ./src/main.c $(LIBS)
|
|
|
|
|
|
|
|
tcc-static:
|
2023-07-31 18:05:20 +03:00
|
|
|
tcc -O3 -o $(EXEC) ./src/main.c ./cJSON/libcjson.a
|
2023-07-31 17:36:48 +03:00
|
|
|
|
2022-06-05 02:56:46 +03:00
|
|
|
clean:
|
2023-07-31 18:05:20 +03:00
|
|
|
rm $(EXEC)
|