-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
194 lines (168 loc) · 3.82 KB
/
GNUmakefile
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Compiler flags to link shared library
LINK_DLL_FLAGS := `sh dll-flags`
# C++ compiler
CXX := g++
# Standard preprocessor flags (common for CC and CXX)
CPPFLAGS :=
# Standard linker flags
LDFLAGS :=
# Location and arguments of wx-config script
WX_CONFIG := wx-config
# C++ flags to use with wxWidgets code
WX_CXXFLAGS := `$(WX_CONFIG) --cxxflags`
### Variables: ###
CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
WXC_CXXFLAGS = -g -fPIC -DPIC $(WX_CXXFLAGS) $(CPPFLAGS) -Iinclude
WXC_OBJECTS = \
extra.o \
defs.o \
apppath.o \
db.o \
dragimage.o \
eljaccelerator.o \
eljartprov.o \
eljbitmap.o \
eljbrush.o \
eljbusyinfo.o \
eljbutton.o \
eljcalendarctrl.o \
eljcaret.o \
eljcheckbox.o \
eljchecklistbox.o \
eljchoice.o \
eljclipboard.o \
eljcoldata.o \
eljcolour.o \
eljcolourdlg.o \
eljcombobox.o \
eljcommand.o \
eljconfigbase.o \
eljcontrol.o \
eljctxhelp.o \
eljcursor.o \
eljdataformat.o \
eljdatetime.o \
eljdc.o \
eljdcsvg.o \
eljdialog.o \
eljdialup.o \
eljdirdlg.o \
eljdnd.o \
eljdrawing.o \
eljevent.o \
eljfiledialog.o \
eljfilehist.o \
eljfindrepldlg.o \
eljfont.o \
eljfontdata.o \
eljfontdlg.o \
eljframe.o \
eljgauge.o \
eljgrid.o \
eljhelpcontroller.o \
eljicnbndl.o \
eljicon.o \
eljimage.o \
eljimagelist.o \
eljipc.o \
eljjoystick.o \
eljlayoutconstraints.o \
eljlistbox.o \
eljlistctrl.o \
eljlocale.o \
eljlog.o \
eljmask.o \
eljmdi.o \
eljmenu.o \
eljmenubar.o \
eljmessagedialog.o \
eljmime.o \
eljminiframe.o \
eljnotebook.o \
eljpalette.o \
eljpanel.o \
eljpen.o \
eljprintdlg.o \
eljprinting.o \
eljprocess.o \
eljradiobox.o \
eljradiobutton.o \
eljregion.o \
eljregioniter.o \
eljsash.o \
eljscrollbar.o \
eljscrolledwindow.o \
eljsingleinst.o \
eljsizer.o \
eljslider.o \
eljspinctrl.o \
eljsplitterwindow.o \
eljstaticbox.o \
eljstaticline.o \
eljstatictext.o \
eljstatusbar.o \
eljsystemsettings.o \
eljtextctrl.o \
eljthread.o \
eljtglbtn.o \
eljtimer.o \
eljtipwnd.o \
eljtoolbar.o \
eljvalidator.o \
eljwindow.o \
eljwizard.o \
ewxw_main.o \
glcanvas.o \
graphicscontext.o \
image.o \
managed.o \
mediactrl.o \
previewframe.o \
printout.o \
sound.o \
stc.o \
taskbaricon.o \
textstream.o \
treectrl.o \
wrapper.o \
socket.o \
sckaddr.o
#eljrc.cpp
#eljgizmos.cpp
#eljfl.cpp
#eljplot.cpp
### Conditionally set variables: ###
### Targets: ###
all: libwxc.so libwxc.so output/func.h output/const.h
install: all
uninstall:
clean:
rm -f ./*.o
rm -f ./*.d
rm -f include/wrapper.h.gch
rm -f libwxc.so
rm -f output/srclist.cc
rm -f output/func.h
rm -f output/const_.h
rm -f output/const.h
libwxc.so: $(WXC_OBJECTS)
$(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(WXC_OBJECTS) $(LDFLAGS) -g `$(WX_CONFIG) --libs gl,net,media,richtext,xrc,html,adv,aui,xml,core,base`
output/srclist.cc: $(WXC_OBJECTS) libwxc.so util/gfunc.cc
g++ util/gfunc.cc `wx-config --cppflags` `wx-config --libs` -o output/gensrclist.exe -Iinclude
./output/gensrclist.exe '$(WXC_OBJECTS)'>output/srclist.cc
rm -f output/gensrclist.exe
output/func.h: output/srclist.cc
g++ -E `wx-config --cppflags` -Iinclude -I. -D__EWX_PREPROCESS output/srclist.cc|sed 's/) {.*$$/)/'|grep ^EWXWEXPORT|sed 's/).*(/,"/'|sed 's/)/")/'>output/func.h
output/const.h: output/srclist.cc util/gconst.cc
g++ -E `wx-config --cppflags` -Iinclude -I. -D__EWX_PREPROCESS output/srclist.cc|grep def_const_|sed 's/(#\(.*\),/("\1",/'>output/const_.h
g++ util/gconst.cc -o output/const.exe -Ioutput `wx-config --cppflags` `wx-config --libs`
./output/const.exe > output/const.h
rm ./output/const.exe
$(WXC_OBJECTS): %.o : src/%.cpp include/wrapper.h.gch
$(CXX) -c -o $@ $(WXC_CXXFLAGS) $(CPPDEPS) $<
#precompiled header
include/wrapper.h.gch: include/wrapper.h
$(CXX) $(WXC_CXXFLAGS) $(CPPDEPS) $<
.PHONY: all install uninstall clean
# Dependencies tracking:
-include ./*.d