Skip to content

Commit 17193f9

Browse files
committed
fix makefile
1 parent 3b1b88b commit 17193f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ OBJ = $(addsuffix .o,$(subst source/,bin/,$(basename ${SRC})))
44
LIBS = -lSDL2 -lSDL2_ttf
55
FLAGS = -std=c99 -Wall -Wextra -Werror -pedantic -g -I./lib
66

7-
compile: ./bin $(OBJ) $(SRC)
7+
compile: ./bin $(OBJ) $(SRC) $(DEPS)
88
$(CC) $(OBJ) $(LIBS) -o yterm
99

1010
./bin:
1111
mkdir -p bin
1212

13-
bin/%.o: source/%.c
13+
bin/%.o: source/%.c $(DEPS)
1414
$(CC) -c $< $(FLAGS) -o $@
1515

1616
clean:

0 commit comments

Comments
 (0)