summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-04-27 18:44:45 -0400
committerLLLL Colonq <llll@colonq>2026-04-27 18:45:08 -0400
commit7748d30575151af59844f43a0e9149b18c40f2f1 (patch)
tree1d8a69c77ece9025d0f03f61b31042d109f6f737 /Makefile
parent4dfc38dfe988c93be7c3de4636428549935f3c4d (diff)
Add windows build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c73c09e..c1283d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+EXE ?= pit
+
CC ?= gcc
AR ?= ar
CHK_SOURCES ?= src/main.c $(SRCS)
@@ -13,7 +15,6 @@ LIB_CORE := libcolonq-pit.a
SRCS_NATIVE := src/native.c
OBJECTS_NATIVE := $(SRCS_NATIVE:src/%.c=$(BUILD)/%.o)
LIB_NATIVE := libcolonq-pit-native.a
-EXE := pit
prefix ?= /usr/local
exec_prefix ?= $(prefix)
@@ -29,10 +30,10 @@ $(EXE): $(BUILD)/main.o $(LIB_NATIVE) $(LIB_CORE)
$(CC) -o $@ $^ $(LDFLAGS)
$(LIB_CORE): $(OBJECTS_CORE)
- ar rcs $@ $^
+ $(AR) rcs $@ $^
$(LIB_NATIVE): $(OBJECTS_NATIVE)
- ar rcs $@ $^
+ $(AR) rcs $@ $^
$(BUILD):
mkdir $(BUILD)/