about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-27 22:57:12 -0400
committerJune McEnroe <june@causal.agency>2019-03-27 22:57:12 -0400
commit3d1dd275da22de8a7047e89ef62c69d4b02e1b99 (patch)
tree3d4a1184ec5332dac172a66970ea385d55e4af25 /Makefile
parentAdd feature test macro for GNU in dump (diff)
downloadcards-3d1dd275da22de8a7047e89ef62c69d4b02e1b99.tar.gz
cards-3d1dd275da22de8a7047e89ef62c69d4b02e1b99.zip
Refactor Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 299616d..939549e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,22 +8,17 @@ LDLIBS = -lSDL2
 -include config.mk
 
 BINS = dump freecell sol
-OBJS = cards.o dump.o freecell.o sol.o
 
 all: $(BINS)
 
-dump: cards.o dump.o
-	$(CC) $(LDFLAGS) cards.o dump.o $(LDLIBS) -o dump
+$(BINS): cards.o
 
-freecell: cards.o freecell.o
-	$(CC) $(LDFLAGS) cards.o freecell.o $(LDLIBS) -o freecell
+.o:
+	$(CC) $(LDFLAGS) $< cards.o $(LDLIBS) -o $@
 
-sol: cards.o sol.o
-	$(CC) $(LDFLAGS) cards.o sol.o $(LDLIBS) -o sol
-
-$(OBJS): cards.h
+cards.o dump.o freecell.o sol.o: cards.h
 
 freecell.o sol.o: layout.h stack.h
 
 clean:
-	rm -f $(BINS) $(OBJS)
+	rm -f $(BINS) *.o *.bmp
a38ac81fe3e4b17e7f466&follow=1'>Use -s to infer terminal sizeJune McEnroe 2019-07-12Add DCH to shottyJune McEnroe This makes htop mostly work. Scrolling region still missing. 2019-07-12Support insert mode in shottyJune McEnroe This is how curses puts characters into the bottom-right cell of the terminal. 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe