add OPTS for user defined options
This commit is contained in:
parent
6b8e1087bd
commit
49cf173286
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -30,10 +30,10 @@ $(NAME): $(OBJ)
|
||||||
$(CC) -o $(BIN)/$(NAME) $(addprefix $(BIN)/, $^) $(LDFLAGS)
|
$(CC) -o $(BIN)/$(NAME) $(addprefix $(BIN)/, $^) $(LDFLAGS)
|
||||||
|
|
||||||
%.so: modules/%.c $(LIB)
|
%.so: modules/%.c $(LIB)
|
||||||
$(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(LDFLAGS)
|
$(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(OPTS) $(LDFLAGS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -o $(BIN)/$@ -c $< $(CFLAGS)
|
$(CC) -o $(BIN)/$@ -c $< $(CFLAGS) $(OPTS)
|
||||||
|
|
||||||
clean: clean_modules
|
clean: clean_modules
|
||||||
rm -rf $(addprefix $(BIN)/, $(OBJ))
|
rm -rf $(addprefix $(BIN)/, $(OBJ))
|
||||||
|
|
Loading…
Reference in a new issue