-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (27 loc) · 886 Bytes
/
makefile
File metadata and controls
34 lines (27 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#################################### COMMANDS ##########################################
ifeq ($(OSTYPE),cygwin)
CLEANUP=rm -f
MKDIR=mkdir -p
TARGET_EXTENSION=out
else ifeq ($(OS),Windows_NT)
CLEANUP=del /F /Q
MKDIR=mkdir
TARGET_EXTENSION=exe
else
CLEANUP=rm -f
MKDIR=mkdir -p
TARGET_EXTENSION=out
endif
#################################### DIR ###############################################
MAIN_DIR=./sqlite-db/main.c
INTERFACE_SRC_DIR=./sqlite-db/interface/src/*.c
BACKEND_SRC_DIR=./sqlite-db/backend/src/*.c
#################################### MAIN ##############################################
compile:
gcc -o db.${TARGET_EXTENSION} ${MAIN_DIR} ${INTERFACE_SRC_DIR} ${BACKEND_SRC_DIR}
test:
pytest -vv
##################################### CLEAN ############################################
clean:
${CLEANUP} *.${TARGET_EXTENSION}
${CLEANUP} test_db.db