author | spiralman <spiralman> | 2002-07-19 18:37:09 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-07-19 18:37:09 (UTC) |
commit | 3d98febb63ff5dcbd2a711b6f120aa5e00a0b337 (patch) (unidiff) | |
tree | f4ca92851ae0f75a5d33c0badd7e81c9227b3571 /noncore/net/ubrowser/Makefile | |
parent | e6b8378c45c717c11172b5af124aba6a0c6aecd3 (diff) | |
download | opie-3d98febb63ff5dcbd2a711b6f120aa5e00a0b337.zip opie-3d98febb63ff5dcbd2a711b6f120aa5e00a0b337.tar.gz opie-3d98febb63ff5dcbd2a711b6f120aa5e00a0b337.tar.bz2 |
initial add of ubrowser source
-rw-r--r-- | noncore/net/ubrowser/Makefile | 253 |
1 files changed, 253 insertions, 0 deletions
diff --git a/noncore/net/ubrowser/Makefile b/noncore/net/ubrowser/Makefile new file mode 100644 index 0000000..4d92441 --- a/dev/null +++ b/noncore/net/ubrowser/Makefile | |||
@@ -0,0 +1,253 @@ | |||
1 | ############################################################################# | ||
2 | # Automatically generated from noncore/ubrowser/Makefile.in | ||
3 | # Build options from | ||
4 | ############################################################################# | ||
5 | |||
6 | # Compiling | ||
7 | INTERFACE_DECL_PATH = . | ||
8 | SYSCONF_CXX = arm-linux-g++ | ||
9 | SYSCONF_CC = arm-linux-gcc | ||
10 | DASHCROSS = -arm | ||
11 | |||
12 | # Compiling with support libraries | ||
13 | SYSCONF_CXXFLAGS_X11= | ||
14 | SYSCONF_CXXFLAGS_QT= -I$(QTDIR)/include | ||
15 | SYSCONF_CXXFLAGS_OPENGL= -I/usr/X11R6/include | ||
16 | |||
17 | # Compiling YACC output | ||
18 | SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
19 | |||
20 | # Linking with support libraries | ||
21 | SYSCONF_RPATH_X11= | ||
22 | SYSCONF_RPATH_QT= -Wl,-rpath,$(QTDIR)/lib | ||
23 | SYSCONF_RPATH_OPENGL= -Wl,-rpath,/usr/X11R6/lib | ||
24 | |||
25 | # Linking with support libraries | ||
26 | # X11 | ||
27 | SYSCONF_LFLAGS_X11= | ||
28 | SYSCONF_LIBS_X11= | ||
29 | # Qt, Qt+OpenGL | ||
30 | SYSCONF_LFLAGS_QT= -L$(QTDIR)/lib | ||
31 | SYSCONF_LIBS_QT = -lqte$(QT_THREAD_SUFFIX) | ||
32 | SYSCONF_LIBS_QT_OPENGL= | ||
33 | # OpenGL | ||
34 | SYSCONF_LFLAGS_OPENGL= -L/usr/X11R6/lib | ||
35 | SYSCONF_LIBS_OPENGL= | ||
36 | # Yacc | ||
37 | SYSCONF_LIBS_YACC= | ||
38 | |||
39 | # Linking applications | ||
40 | SYSCONF_LINK = arm-linux-gcc | ||
41 | SYSCONF_LFLAGS = | ||
42 | SYSCONF_LIBS = | ||
43 | |||
44 | # Link flags for shared objects | ||
45 | SYSCONF_LFLAGS_SHOBJ= -shared | ||
46 | |||
47 | # Flags for threading | ||
48 | SYSCONF_CFLAGS_THREAD= -D_REENTRANT | ||
49 | SYSCONF_CXXFLAGS_THREAD= -D_REENTRANT | ||
50 | SYSCONF_LFLAGS_THREAD= | ||
51 | SYSCONF_LIBS_THREAD= -lpthread | ||
52 | |||
53 | # Meta-object compiler | ||
54 | SYSCONF_MOC = $(QTDIR)/bin/moc | ||
55 | |||
56 | # UI compiler | ||
57 | SYSCONF_UIC = $(QTDIR)/bin/uic | ||
58 | |||
59 | # Linking shared libraries | ||
60 | # - Build the $(TARGET) library, eg. lib$(TARGET).so.2.2.2 | ||
61 | # - Place target in $(DESTDIR) - which has a trailing / | ||
62 | # - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
63 | # | ||
64 | SYSCONF_LINK_SHLIB= arm-linux-gcc | ||
65 | SYSCONF_LINK_TARGET_SHARED= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
66 | SYSCONF_LINK_LIB_SHARED= $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \ | ||
67 | $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \ | ||
68 | $(OBJECTS) $(OBJMOC) $(LIBS) && \ | ||
69 | mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | ||
70 | cd $(DESTDIR) && \ | ||
71 | rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN); \ | ||
72 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ | ||
73 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \ | ||
74 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) | ||
75 | |||
76 | # Linking static libraries | ||
77 | # - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
78 | # - Place target in $(DESTDIR) - which has a trailing / | ||
79 | # | ||
80 | SYSCONF_AR = arm-linux-ar cqs | ||
81 | SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | ||
82 | SYSCONF_LINK_LIB_STATIC= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | ||
83 | $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) | ||
84 | # Compiling application source | ||
85 | SYSCONF_CXXFLAGS= -pipe -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W | ||
86 | SYSCONF_CFLAGS = -pipe -O2 -Wall -W | ||
87 | # Default link type (static linking is still be used where required) | ||
88 | SYSCONF_LINK_LIB= $(SYSCONF_LINK_LIB_SHARED) | ||
89 | SYSCONF_LINK_TARGET= $(SYSCONF_LINK_TARGET_SHARED) | ||
90 | # Compiling library source | ||
91 | SYSCONF_CXXFLAGS_LIB= -fPIC | ||
92 | SYSCONF_CFLAGS_LIB= -fPIC | ||
93 | # Compiling shared-object source | ||
94 | SYSCONF_CXXFLAGS_SHOBJ= -fPIC | ||
95 | SYSCONF_CFLAGS_SHOBJ= -fPIC | ||
96 | # Linking Qt | ||
97 | SYSCONF_LIBS_QTLIB= $(SYSCONF_LFLAGS_X11) $(QT_LIBS_MT) $(QT_LIBS_OPT) | ||
98 | # Linking Qt applications | ||
99 | SYSCONF_LIBS_QTAPP= | ||
100 | ############################################################################# | ||
101 | |||
102 | ####### Compiler, tools and options | ||
103 | |||
104 | CXX =$(SYSCONF_CXX) $(QT_CXX_MT) | ||
105 | CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) | ||
106 | CC =$(SYSCONF_CC) $(QT_C_MT) | ||
107 | CFLAGS =$(SYSCONF_CFLAGS) | ||
108 | INCPATH =-I$(OPIEDIR)/include | ||
109 | LFLAGS =$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) | ||
110 | LIBS =$(SUBLIBS) -lqpe $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS) $(SYSCONF_LIBS_QTAPP) | ||
111 | MOC =$(SYSCONF_MOC) | ||
112 | UIC =$(SYSCONF_UIC) | ||
113 | |||
114 | ####### Target | ||
115 | |||
116 | DESTDIR = $(OPIEDIR)/bin/ | ||
117 | VER_MAJ = 1 | ||
118 | VER_MIN = 0 | ||
119 | VER_PATCH = 0 | ||
120 | TARGET= ubrowser | ||
121 | TARGET1 = lib$(TARGET).so.$(VER_MAJ) | ||
122 | |||
123 | ####### Files | ||
124 | |||
125 | HEADERS =mainview.h \ | ||
126 | httpfactory.h \ | ||
127 | httpcomm.h | ||
128 | SOURCES =main.cpp \ | ||
129 | mainview.cpp \ | ||
130 | httpfactory.cpp \ | ||
131 | httpcomm.cpp | ||
132 | OBJECTS =main.o \ | ||
133 | mainview.o \ | ||
134 | httpfactory.o \ | ||
135 | httpcomm.o | ||
136 | INTERFACES = | ||
137 | UICDECLS = | ||
138 | UICIMPLS = | ||
139 | SRCMOC =moc_mainview.cpp \ | ||
140 | moc_httpcomm.cpp | ||
141 | OBJMOC =moc_mainview.o \ | ||
142 | moc_httpcomm.o | ||
143 | |||
144 | |||
145 | ####### Implicit rules | ||
146 | |||
147 | .SUFFIXES: .cpp .cxx .cc .C .c | ||
148 | |||
149 | .cpp.o: | ||
150 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
151 | |||
152 | .cxx.o: | ||
153 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
154 | |||
155 | .cc.o: | ||
156 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
157 | |||
158 | .C.o: | ||
159 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
160 | |||
161 | .c.o: | ||
162 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
163 | |||
164 | ####### Build rules | ||
165 | |||
166 | |||
167 | all: $(DESTDIR)$(TARGET) | ||
168 | |||
169 | $(DESTDIR)$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) | ||
170 | $(SYSCONF_LINK) $(LFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
171 | |||
172 | moc: $(SRCMOC) | ||
173 | |||
174 | tmake: | ||
175 | tmake ubrowser.pro | ||
176 | |||
177 | clean: | ||
178 | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) | ||
179 | -rm -f *~ core | ||
180 | -rm -f allmoc.cpp | ||
181 | |||
182 | ####### Extension Modules | ||
183 | |||
184 | listpromodules: | ||
185 | @echo | ||
186 | |||
187 | listallmodules: | ||
188 | @echo | ||
189 | |||
190 | listaddonpromodules: | ||
191 | @echo | ||
192 | |||
193 | listaddonentmodules: | ||
194 | @echo | ||
195 | |||
196 | |||
197 | REQUIRES= | ||
198 | |||
199 | ####### Sub-libraries | ||
200 | |||
201 | |||
202 | ###### Combined headers | ||
203 | |||
204 | |||
205 | |||
206 | ####### Compile | ||
207 | |||
208 | main.o: main.cpp \ | ||
209 | $(OPIEDIR)/include/qpe/qpeapplication.h \ | ||
210 | mainview.h \ | ||
211 | $(OPIEDIR)/include/qpe/resource.h \ | ||
212 | $(OPIEDIR)/include/qpe/qpetoolbar.h \ | ||
213 | httpfactory.h \ | ||
214 | httpcomm.h | ||
215 | |||
216 | mainview.o: mainview.cpp \ | ||
217 | mainview.h \ | ||
218 | $(OPIEDIR)/include/qpe/resource.h \ | ||
219 | $(OPIEDIR)/include/qpe/qpetoolbar.h \ | ||
220 | httpfactory.h \ | ||
221 | httpcomm.h | ||
222 | |||
223 | httpfactory.o: httpfactory.cpp \ | ||
224 | httpfactory.h \ | ||
225 | httpcomm.h | ||
226 | |||
227 | httpcomm.o: httpcomm.cpp \ | ||
228 | httpcomm.h | ||
229 | |||
230 | moc_mainview.o: moc_mainview.cpp \ | ||
231 | mainview.h \ | ||
232 | $(OPIEDIR)/include/qpe/resource.h \ | ||
233 | $(OPIEDIR)/include/qpe/qpetoolbar.h \ | ||
234 | httpfactory.h \ | ||
235 | httpcomm.h | ||
236 | |||
237 | moc_httpcomm.o: moc_httpcomm.cpp \ | ||
238 | httpcomm.h | ||
239 | |||
240 | moc_mainview.cpp: mainview.h | ||
241 | $(MOC) mainview.h -o moc_mainview.cpp | ||
242 | |||
243 | moc_httpcomm.cpp: httpcomm.h | ||
244 | $(MOC) httpcomm.h -o moc_httpcomm.cpp | ||
245 | |||
246 | |||
247 | |||
248 | lupdate: | ||
249 | lupdate ubrowser.pro | ||
250 | |||
251 | lrelease: | ||
252 | lrelease ubrowser.pro | ||
253 | |||