blob: 742e5f6bda962fe1d0a93a690d3adf801e792fa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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
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
|