-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.57 KB
/
Copy pathMakefile
File metadata and controls
55 lines (44 loc) · 1.57 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Makefile – Coffee Toolkit
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra -Wno-unused-parameter \
-I/boot/system/develop/headers/private
LIBS = -lbe -lroot -ltranslation -ltracker -lshared
RC = rc
TARGET = coffee_toolkit
RDEF = coffee_toolkit.rdef
RSRC = coffee_toolkit.rsrc
SET_ICON = set_icon
ICON_SRC = toolkit.png
SRCS = main.cpp \
MainWindow.cpp \
BrewRatioWindow.cpp \
ExtractionWindow.cpp \
RoastColorWindow.cpp \
DetailWindow.cpp \
Settings.cpp
OBJS = $(SRCS:.cpp=.o)
.PHONY: all clean
all: $(TARGET)
$(SET_ICON): set_icon.cpp
$(CXX) $(CXXFLAGS) -o $@ $< -lbe -lroot -ltranslation
$(TARGET): $(OBJS) $(RSRC) $(SET_ICON) $(ICON_SRC)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LIBS)
xres -o $@ $(RSRC)
mimeset -f $@
./$(SET_ICON) $@ $(ICON_SRC)
$(RSRC): $(RDEF)
$(RC) -o $@ $<
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
# Header dependencies
main.o: main.cpp MainWindow.h
MainWindow.o: MainWindow.cpp MainWindow.h Constants.h Settings.h \
BrewRatioWindow.h ExtractionWindow.h \
RoastColorWindow.h DetailWindow.h
BrewRatioWindow.o: BrewRatioWindow.cpp BrewRatioWindow.h Constants.h Settings.h
ExtractionWindow.o: ExtractionWindow.cpp ExtractionWindow.h Constants.h Settings.h
RoastColorWindow.o: RoastColorWindow.cpp RoastColorWindow.h Constants.h Settings.h
DetailWindow.o: DetailWindow.cpp DetailWindow.h Constants.h Settings.h
Settings.o: Settings.cpp Settings.h Constants.h
clean:
rm -f $(OBJS) $(TARGET) $(RSRC) $(SET_ICON)