back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-11-21 00:42:10 +0300
committerscratko <m@scratko.xyz>2024-11-21 00:50:56 +0300
commit0b72fabadec642dcecfe861c56dfeddb0c82a898 (patch)
tree76d8a003db2c45bd0a94753ab921fc07d080f970 /Makefile
parent503e7350fa3d8065e2f4814181664382154dc702 (diff)
downloadpicture-puzzle-0b72fabadec642dcecfe861c56dfeddb0c82a898.tar.gz
picture-puzzle-0b72fabadec642dcecfe861c56dfeddb0c82a898.tar.bz2
picture-puzzle-0b72fabadec642dcecfe861c56dfeddb0c82a898.zip
Fixed memory leak
The image widget is responsible for deleting the loaded part of the image Check for correct type of selected file Error checking after image upload
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4732fd6..742e5f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
SRCMODULES = puzzle.cpp gameplay.cpp menu_callbacks.cpp solution_algorithm.cpp img_handler.cpp main.cpp
OBJMODULES = $(SRCMODULES:.cpp=.o)
CXX = g++
-CXXFLAGS = -Wall -g -D DEBUG
+CXXFLAGS = -Wall -g
LIBS = -lfltk -lfltk_images
all: main
%.o: %.сpp
- $(CXX) $(CXXFLAGS) -c $< -I /usr/include/libpng16 -o $@
+ $(CXX) $(CXXFLAGS) -c $< -o $@
main: $(OBJMODULES)
$(CXX) $^ $(LIBS) -o $@