summary refs log tree commit diff
diff options
context:
space:
mode:
-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
1/hilex.1?id=f44f549f0caf9bcf41c68c9fdd694b36adace996&follow=1'>Support BSD make syntax and match *.amJune McEnroe These don't really go together, but... 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe Otherwise it ends up going into Shell state. 2021-01-18Allow matching lexers using first input lineJune McEnroe