Skip to content

Commit

Permalink
Track build dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Feb 7, 2024
1 parent 444d2fc commit b747e89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.o
*.d
ttt
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PROG = ttt
CFLAGS := -Wall -Wextra -std=c11
CFLAGS += -I.
CFLAGS += -I. -MMD
LDFLAGS :=

GIT_HOOKS := .git/hooks/applied

Expand All @@ -14,8 +15,10 @@ OBJS := \
game.o \
agents/negamax.o \
main.o
deps := $(OBJS:%.o=%.d)

$(PROG): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)

clean:
-$(RM) $(PROG) $(OBJS)
-$(RM) $(PROG) $(OBJS) $(deps)

0 comments on commit b747e89

Please sign in to comment.