add OPTS for user defined options

This commit is contained in:
jacekpoz 2024-02-11 18:39:24 +01:00
parent 6b8e1087bd
commit 49cf173286
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -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))