]> git.cworth.org Git - wordgame/blobdiff - Makefile
Print the per-word statistics at the end of the game.
[wordgame] / Makefile
index 2e1e7e06a965eacf3da38380f37f4187fc90b3a4..d7441aa64aabbc65f8626d065ed20f314199e1d9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
 WGCFLAGS=-Wall -Wextra -Wmissing-prototypes -Wno-unused-parameter
 
-PROGRAMS=grid
+PROGRAMS=grid4 drill2 rack
 all: $(PROGRAMS)
 
-LIBRARY=dict.o word-game.o
+LIBRARY=dict.o grid.o word-game.o
 
-grid: grid.o $(LIBRARY)
+%: %.o $(LIBRARY)
        $(CC) $(CFLAGS) $(WGCFLAGS) $(LDFLAGS) -lreadline -lm -o $@ $^
 
 %.o: %.c