src/Makefile

changeset 78
ceb9197b3c6d
parent 72
7e58e0f74e50
--- a/src/Makefile	Mon Jun 02 19:32:37 2025 +0200
+++ b/src/Makefile	Mon Jun 02 19:40:24 2025 +0200
@@ -41,35 +41,35 @@
 
 FORCE:
 
-
-$(BUILDDIR)/client.o: client.c terminal-chess.h network.h chess/rules.h \
- input.h game.h chess/chess.h chess/rules.h chess/pawn.h chess/rook.h \
- chess/knight.h chess/bishop.h chess/queen.h chess/king.h chess/pgn.h
+$(BUILDDIR)/client.o: client.c input.h game.h chess/game-info.h network.h \
+ chess/pgn.h chess/rules.h chess/game-info.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILDDIR)/colors.o: colors.c colors.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
-$(BUILDDIR)/game.o: game.c game.h chess/chess.h chess/rules.h \
- chess/pawn.h chess/rook.h chess/knight.h chess/bishop.h chess/queen.h \
- chess/king.h chess/pgn.h terminal-chess.h network.h chess/rules.h \
- input.h colors.h
+$(BUILDDIR)/game.o: game.c game.h chess/game-info.h network.h input.h \
+ colors.h chess/rules.h chess/game-info.h chess/pgn.h chess/rules.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILDDIR)/input.o: input.c input.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
-$(BUILDDIR)/main.o: main.c terminal-chess.h network.h chess/rules.h \
- game.h chess/chess.h chess/rules.h chess/pawn.h chess/rook.h \
- chess/knight.h chess/bishop.h chess/queen.h chess/king.h chess/pgn.h \
- input.h colors.h
+$(BUILDDIR)/main.o: main.c game.h chess/game-info.h input.h network.h \
+ colors.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILDDIR)/network.o: network.c network.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
-$(BUILDDIR)/server.o: server.c terminal-chess.h network.h chess/rules.h \
- game.h chess/chess.h chess/rules.h chess/pawn.h chess/rook.h \
- chess/knight.h chess/bishop.h chess/queen.h chess/king.h chess/pgn.h
+$(BUILDDIR)/server.o: server.c network.h game.h chess/game-info.h \
+ chess/pgn.h chess/rules.h chess/game-info.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 

mercurial