Skip to content

Commit

Permalink
Passing the compilation options to the objects too
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Sep 16, 2024
1 parent 4a9f455 commit 0e9b78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $(OBJ): $(SRC:%.c=%.o)
$(CC) $^ -rdynamic $(OPT) -o $@

%.o: %.c Makefile
$(CC) -c $< -o $@
$(CC) -c $< $(OPT) -o $@

clean:
rm -rf $(SRC:%.c=%.o) $(OBJ)

0 comments on commit 0e9b78a

Please sign in to comment.