diff options
author | scratko <m@scratko.xyz> | 2024-11-21 00:42:10 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-21 00:50:56 +0300 |
commit | 0b72fabadec642dcecfe861c56dfeddb0c82a898 (patch) | |
tree | 76d8a003db2c45bd0a94753ab921fc07d080f970 /Makefile | |
parent | 503e7350fa3d8065e2f4814181664382154dc702 (diff) | |
download | picture-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@ |