From e64c2a9d94bb6e21ac24d7e1ff5915a29bbd67bf Mon Sep 17 00:00:00 2001 From: scratko Date: Sat, 9 Nov 2024 20:00:19 +0300 Subject: Moving slides Changed to 8 puzzles Added reaction to clicking a puzzle Puzzles are moved to vector --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a73ba82 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +SRCMODULES = puzzle.cpp gameplay.cpp main.cpp +OBJMODULES = $(SRCMODULES:.cpp=.o) +CXX = g++ +CXXFLAGS = -Wall -g +LIBS = -lfltk -lfltk_images + +all: main + +%.o: %.сpp + $(CXX) $(CXXFLAGS) -c $< -o $@ + +main: $(OBJMODULES) + $(CXX) $^ $(LIBS) -o $@ + +ifneq (clean, $(MAKECMDGOALS)) +-include deps.mk +endif + +deps.mk: $(SRCMODULES) + $(CC) -MM $^ > $@ + +clean: + rm -f *.o main -- cgit v1.2.3