From 0b72fabadec642dcecfe861c56dfeddb0c82a898 Mon Sep 17 00:00:00 2001 From: scratko Date: Thu, 21 Nov 2024 00:42:10 +0300 Subject: 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3