diff options
author | KikooDX <kikoodx@paranoici.org> | 2022-03-12 18:44:54 +0100 |
---|---|---|
committer | KikooDX <kikoodx@paranoici.org> | 2022-03-12 18:44:59 +0100 |
commit | aac891a977028cc4b0bd135933f52f63232ecdef (patch) | |
tree | 93c4a974f22e2c4c1ff8da91c2681da45f597298 | |
parent | 140bed1492c9fb1b18858aef4d68c5126337ed08 (diff) | |
download | lzy-aac891a977028cc4b0bd135933f52f63232ecdef.tar.gz |
rebuild when headers modified
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_mixer $(shell sdl2-config --libs) OBJ_NAME = lzy OBJS := $(patsubst %.c,%.o,$(wildcard src/*.c)) +HEADERS := $(wildcard inc/*.h) all: $(OBJ_NAME) @@ -11,7 +12,7 @@ $(OBJ_NAME): $(OBJS) $(CC) $(LDFLAGS) $(LIBRARIES) -o $(OBJ_NAME) $(OBJS) strip $(OBJ_NAME) -%.o: %.c +%.o: %.c $(HEADERS) $(CC) $(CFLAGS) -c -o $@ $< cg: |