diff options
author | scratko <m@scratko.xyz> | 2024-11-09 20:00:19 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-09 20:12:48 +0300 |
commit | e64c2a9d94bb6e21ac24d7e1ff5915a29bbd67bf (patch) | |
tree | 5d42ff77afaeb101ff260ddf06b733cf0ef6fa61 /Makefile | |
parent | 365c27f05d5739213d3a98aa41dcc7f1cb0a6c60 (diff) | |
download | picture-puzzle-e64c2a9d94bb6e21ac24d7e1ff5915a29bbd67bf.tar.gz picture-puzzle-e64c2a9d94bb6e21ac24d7e1ff5915a29bbd67bf.tar.bz2 picture-puzzle-e64c2a9d94bb6e21ac24d7e1ff5915a29bbd67bf.zip |
Moving slides
Changed to 8 puzzles
Added reaction to clicking a puzzle
Puzzles are moved to vector
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 |