From ef1cd7cc6060df0f5dcfada136dd99a695e8a0fc Mon Sep 17 00:00:00 2001 From: frosty Date: Thu, 12 Mar 2026 18:21:57 -0400 Subject: [PATCH] remove OS-specific code from Makefile --- Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index e4fc322..6eae3cd 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,6 @@ -OS := $(shell uname -s) - -ifeq ($(OS), FreeBSD) - CC := clang - CFLAGS := -Wall -Wextra -O2 -Isrc -I/usr/local/include/libxml2 -I/usr/local/include - LDFLAGS := -L/usr/local/lib -else - CC := gcc - CFLAGS := -Wall -Wextra -O2 -Isrc -I/usr/include/libxml2 - LDFLAGS := -endif +CC := cc +CFLAGS := -Wall -Wextra -O2 -Isrc -I/usr/include/libxml2 +LDFLAGS := LIBS := -lbeaker -lcurl -lxml2 -lpthread -lm -lssl -lcrypto @@ -26,7 +18,7 @@ all: $(TARGET) $(TARGET): $(OBJS) @mkdir -p $(BIN_DIR) $(CC) $(OBJS) -o $@ $(LDFLAGS) $(LIBS) - @echo "Build complete for $(OS): $(TARGET)" + @echo "Build complete: $(TARGET)" $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c @mkdir -p $(dir $@) @@ -43,7 +35,6 @@ clean: rebuild: clean all info: - @echo "Detected OS: $(OS)" @echo "Compiler: $(CC)" @echo "CFlags: $(CFLAGS)" @echo ""