2021-05-17 17:28:20 +08:00
|
|
|
|
2021-06-09 18:42:26 +08:00
|
|
|
## Copyright (c) 2020-2021 Thakee Nathees
|
|
|
|
## Distributed Under The MIT License
|
2021-05-17 17:28:20 +08:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -lm -fPIC -Wno-int-to-pointer-cast
|
|
|
|
INCLUDE_DIR = -I../src/include
|
|
|
|
SOURCES = ../cli/*.c ../src/*.c
|
|
|
|
|
|
|
|
all: debug
|
|
|
|
|
2021-05-28 03:27:29 +08:00
|
|
|
debug:
|
2021-05-19 02:59:09 +08:00
|
|
|
@mkdir -p debug/
|
|
|
|
$(CC) -o debug/pocket $(SOURCES) $(INCLUDE_DIR) $(CFLAGS) -D DEBUG -g3 -Og
|
2021-05-17 17:28:20 +08:00
|
|
|
|
2021-05-28 03:27:29 +08:00
|
|
|
release:
|
|
|
|
@mkdir -p release/
|
2021-05-19 02:59:09 +08:00
|
|
|
$(CC) -o release/pocket $(SOURCES) $(INCLUDE_DIR) $(CFLAGS) -g -O3
|
2021-05-17 17:28:20 +08:00
|
|
|
|
|
|
|
clean:
|
2021-05-19 02:59:09 +08:00
|
|
|
rm -rf debug/
|
|
|
|
rm -rf release/
|