Skip to content

Commit

Permalink
Refine build rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Feb 7, 2024
1 parent b87649d commit 89b2399
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PROG = ttt
CFLAGS = -Wall -Wextra -std=c11 -I .
CFLAGS := -Wall -Wextra -std=c11
CFLAGS += -I.

GIT_HOOKS := .git/hooks/applied

Expand All @@ -9,8 +10,12 @@ $(GIT_HOOKS):
@scripts/install-git-hooks
@echo

$(PROG): $(PROG).c game.c agents/negamax.c
gcc $(CFLAGS) -o $@ $^
OBJS := \
game.o \
agents/negamax.o \
main.o

$(PROG): $(OBJS)

clean:
-$(RM) $(PROG)
-$(RM) $(PROG) $(OBJS)
File renamed without changes.

0 comments on commit 89b2399

Please sign in to comment.