]> git.cworth.org Git - wordgame/blobdiff - Makefile
Add the ability to specify grid letters on the command line.
[wordgame] / Makefile
index 2e1e7e06a965eacf3da38380f37f4187fc90b3a4..79c066c94253ba00f51bd9da43c4564453683e3e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-WGCFLAGS=-Wall -Wextra -Wmissing-prototypes -Wno-unused-parameter
+WGCFLAGS=-Wall -Wextra -Wmissing-prototypes -Wno-unused-parameter -Wno-sign-compare
 
-PROGRAMS=grid
+PROGRAMS=grid4 grid5 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