-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·39 lines (26 loc) · 1007 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CXXFLAGS = --std=c++17
GTKFLAGS = `/usr/bin/pkg-config gtkmm-3.0 --cflags --libs`
all: fileexplorer
test: CXXGLAGS += -g
test: test_product test_product_order test_order test_store
debug: CXXFLAGS += -g
debug: all
data.o: data.cpp *.h
$(CXX) $(CXXFLAGS) -c data.cpp $(GTKFLAGS)
dialogs.o: dialogs.cpp *.h
$(CXX) $(CXXFLAGS) -c dialogs.cpp $(GTKFLAGS)
main_window.o: main_window.cpp *.h
$(CXX) $(CXXFLAGS) -c main_window.cpp $(GTKFLAGS)
main.o: main.cpp *.h
$(CXX) $(CXXFLAGS) -c main.cpp $(GTKFLAGS)
file.o: file.cpp *.h
$(CXX) $(CXXFLAGS) -c file.cpp $(GTKFLAGS)
folder.o: folder.cpp *.h
$(CXX) $(CXXFLAGS) -c folder.cpp $(GTKFLAGS)
algorithm.o: algorithm.cpp *.h
$(CXX) $(CXXFLAGS) -c algorithm.cpp $(GTKFLAGS)
fileexplorer: data.o folder.o file.o dialogs.o algorithm.o main_window.o main.o *.h
$(CXX) $(CXXFLAGS) -o fileexplorer data.o file.o folder.o dialogs.o algorithm.o main_window.o main.o $(GTKFLAGS)
clean:
-rm -f *.gch *.o *~a.out ./fileexplorer ./a.out
rebuild: clean all