blob: fc4ce53df15328917177caa40305f8ead6fd1ba1 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
include ../Makefile.common
SHAREDGRAPHICS_OBJS = \
../SharedGraphics/Painter.o \
../SharedGraphics/StylePainter.o \
../SharedGraphics/Font.o \
../SharedGraphics/Rect.o \
../SharedGraphics/GraphicsBitmap.o \
../SharedGraphics/CharacterBitmap.o \
../SharedGraphics/Color.o \
../SharedGraphics/PNGLoader.o
LIBGUI_OBJS = \
GPainter.o \
GButton.o \
GCheckBox.o \
GEventLoop.o \
GLabel.o \
GTextBox.o \
GScrollBar.o \
GStatusBar.o \
GWidget.o \
GLayout.o \
GBoxLayout.o \
GMenuBar.o \
GMenu.o \
GMenuItem.o \
GApplication.o \
GAction.o \
GFontDatabase.o \
GToolBar.o \
GTableView.o \
GModel.o \
GVariant.o \
GShortcut.o \
GTextEditor.o \
GClipboard.o \
GSortingProxyModel.o \
GStackWidget.o \
GScrollableWidget.o \
GMessageBox.o \
GInputBox.o \
GDialog.o \
GDesktop.o \
GProgressBar.o \
GAbstractView.o \
GItemView.o \
GIcon.o \
GFrame.o \
GTreeView.o \
GFileSystemModel.o \
GFilePicker.o \
GDirectoryModel.o \
GSplitter.o \
GSpinBox.o \
GGroupBox.o \
GSlider.o \
GResizeCorner.o \
GTabWidget.o \
GRadioButton.o \
GAbstractButton.o \
GListView.o \
GWindow.o
OBJS = $(SHAREDGRAPHICS_OBJS) $(LIBGUI_OBJS)
LIBRARY = libgui.a
DEFINES += -DUSERLAND
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
@echo "LIB $@"; $(AR) rcs $@ $(OBJS)
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
-include $(OBJS:%.o=%.d)
clean:
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
install: $(LIBRARY)
mkdir -p ../Root/usr/include/LibGUI
# Copy headers
rsync -r -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include/LibGUI
# Install the library
cp $(LIBRARY) ../Root/usr/lib
|