-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 713 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (23 loc) · 713 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
# Define the compiler and flags
NIMBLE = nimble
NIM_FLAGS = -d:release --mm:orc --threads:on --opt:speed
LDFLAGS = -ljavascriptcoregtk-4.0
CFLAGS = -I/usr/include/webkitgtk-4.0
OUTDIR = ./
# Define the source and target files
SRC = ./src/runtime.nim
# Default target
all: compile
# Install dependencies
deps:
$(NIMBLE) install -y
# Compile the source code
compile:
@mkdir -p $(OUTDIR)
$(NIMBLE) c $(NIM_FLAGS) --passL:"$(LDFLAGS)" --passC:"$(CFLAGS)" --outdir:$(OUTDIR) --out:izem $(SRC)
# Compile the source code for debugging
debug:
@mkdir -p $(OUTDIR)
$(NIMBLE) c -d:debug --passL:"$(LDFLAGS)" --passC:"$(CFLAGS)" --outdir:$(OUTDIR) --out:izem $(SRC)
# Phony targets
.PHONY: all deps compile debug