From 49cf173286810cbeb192574ef2e0fc1fc285e9f8 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sun, 11 Feb 2024 18:39:24 +0100 Subject: [PATCH] add OPTS for user defined options --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 83a59b4..6423bdc 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,10 @@ $(NAME): $(OBJ) $(CC) -o $(BIN)/$(NAME) $(addprefix $(BIN)/, $^) $(LDFLAGS) %.so: modules/%.c $(LIB) - $(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(LDFLAGS) + $(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(OPTS) $(LDFLAGS) %.o: %.c - $(CC) -o $(BIN)/$@ -c $< $(CFLAGS) + $(CC) -o $(BIN)/$@ -c $< $(CFLAGS) $(OPTS) clean: clean_modules rm -rf $(addprefix $(BIN)/, $(OBJ))