Skip to content

Commit

Permalink
Rebuild obj files on %.h changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzigold committed May 29, 2024
1 parent ff7652d commit f3914cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ image: version-check
$(BIN): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS) $(CFLAGS) $(LDLIBS)

$(OBJDIR)/%.o: %.c
$(OBJDIR)/%.o: %.c $(DEPDIR)/%.d
$(OBJDIR)/%.o: %.c %.h
$(OBJDIR)/%.o: %.c $(DEPDIR)/%.d %.h
$(PRECOMPILE)
$(COMPILE.c) $<
$(POSTCOMPILE)

$(OBJDIR)/%.o : %.c $(DEPDIR)/%.d | $(DEPDIR)
$(OBJDIR)/%.o : %.c $(DEPDIR)/%.d %.h | $(DEPDIR)
$(COMPILE.c) $(OUTPUT_OPTION) $<

.PRECIOUS: $(DEPDIR)/%.d
Expand Down

0 comments on commit f3914cc

Please sign in to comment.