From 7748d30575151af59844f43a0e9149b18c40f2f1 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 27 Apr 2026 18:44:45 -0400 Subject: Add windows build --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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)/ -- cgit v1.2.3