diff --git a/Makefile b/Makefile index c794587..0dcb3dd 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,13 @@ dirs: mkdir -p $(BIN) $(NAME): $(OBJ) - $(CC) -o $(BIN)/$@ $(addprefix $(BIN)/, $^) $(LDFLAGS) + $(CC) $(addprefix $(BIN)/, $^) $(LDFLAGS) -o $(BIN)/$@ %.so: modules/%.c $(LIB) - $(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) $(LDFLAGS) + $(CC) $^ -shared -fPIC $(CFLAGS) $(LDFLAGS) -o $(BIN)/$@ %.o: %.c - $(CC) -o $(BIN)/$@ -c $< $(CFLAGS) + $(CC) -c $< $(CFLAGS) -o $(BIN)/$@ clean: clean_modules rm -rf $(addprefix $(BIN)/, $(OBJ))