OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [makefile.gnu] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ####ECOSHOSTGPLCOPYRIGHTBEGIN####
2
# -------------------------------------------
3
# This file is part of the eCos host tools.
4
# Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
5
#
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 or (at your option) any
9
# later version.
10
#
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
# General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the
18
# Free Software Foundation, Inc., 51 Franklin Street,
19
# Fifth Floor, Boston, MA  02110-1301, USA.
20
# -------------------------------------------
21
# ####ECOSHOSTGPLCOPYRIGHTEND####
22
 
23
# #####DESCRIPTIONBEGIN####
24
#
25
# Author(s):   jld, julians
26
# Contact(s):  jld
27
# Date:        2003-01-17
28
# Purpose:     Building configtool using GNU tools
29
# Description: GNU makefile for building configtool on Linux and Cygwin hosts
30
# Requires:
31
# Provides:
32
# See also:
33
# Known bugs:
34
# Usage:
35
#
36
# ####DESCRIPTIONEND####
37
 
38
# Usage:
39
#   cd emptydir
40
#   make -f /path/to/this/makefile WXDIR=/path/to/wx/installation INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ TCLDIR=/path/to/tcl/installation ] [ DEBUG=1 ]
41
 
42
INSTALLDIR=INSTALLDIR_not_defined
43
WXDIR=WXDIR_not_defined
44
 
45
CTBUILDDIR=$(shell pwd)
46
ECOSSRCDIR=$(INSTALLDIR)/src
47
CTDIR=$(ECOSSRCDIR)/tools/configtool/standalone/wxwin
48
TCLDIR=TCLDIR_use_system
49
USEEXPERIMENTALCODE=1
50
 
51
EXTRACPPFLAGS=\
52
  -I$(TCLDIR)/include \
53
  -I$(INSTALLDIR)/include \
54
  -I$(ECOSSRCDIR)/tools/configtool/common/common \
55
  -I$(ECOSSRCDIR)/tools/Utils/common \
56
  -I$(ECOSSRCDIR)/tools/ecostest/common \
57
  -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE)
58
EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl
59
 
60
ifneq (,$(findstring CYGWIN, $(shell uname)))
61
  PROGRAM=configtool.exe
62
  CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags` -D_WIN32 -D__WIN32__ -DSTRICT -D__USE_W32_SOCKETS
63
  LDFLAGS=`$(WXDIR)/bin/wx-config --libs std,gizmos` -lshlwapi -Wl,--subsystem,windows
64
  EXTRAOBJECTS=$(CTBUILDDIR)/configtoolres.o
65
  RCFLAGS=`$(WXDIR)/bin/wx-config --cppflags`
66
else
67
  PROGRAM=configtool
68
  CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags`
69
  LDFLAGS=`$(WXDIR)/bin/wx-config --libs std,gizmos`
70
  EXTRAOBJECTS=
71
  RCFLAGS=`$(WXDIR)/bin/wx-config --cppflags`
72
endif
73
 
74
ifeq "$(DEBUG)" ""
75
  CPPDEBUGOPTIONS=-O2
76
else
77
  CPPDEBUGOPTIONS=-ggdb
78
endif
79
 
80
OBJECTS = \
81
 $(CTBUILDDIR)/aboutdlg.o \
82
 $(CTBUILDDIR)/admindlg.o \
83
 $(CTBUILDDIR)/appsettings.o \
84
 $(CTBUILDDIR)/build.o \
85
 $(CTBUILDDIR)/buildoptionsdlg.o \
86
 $(CTBUILDDIR)/choosereposdlg.o \
87
 $(CTBUILDDIR)/Collections.o \
88
 $(CTBUILDDIR)/configitem.o \
89
 $(CTBUILDDIR)/configpropdlg.o \
90
 $(CTBUILDDIR)/configtool.o \
91
 $(CTBUILDDIR)/configtooldoc.o \
92
 $(CTBUILDDIR)/configtoolview.o \
93
 $(CTBUILDDIR)/configtree.o \
94
 $(CTBUILDDIR)/conflictsdlg.o \
95
 $(CTBUILDDIR)/conflictwin.o \
96
 $(CTBUILDDIR)/docsystem.o \
97
 $(CTBUILDDIR)/eCosSerial.o \
98
 $(CTBUILDDIR)/eCosSocket.o \
99
 $(CTBUILDDIR)/eCosStd.o \
100
 $(CTBUILDDIR)/eCosTest.o \
101
 $(CTBUILDDIR)/eCosTestDownloadFilter.o \
102
 $(CTBUILDDIR)/eCosTestPlatform.o \
103
 $(CTBUILDDIR)/eCosTestSerialFilter.o \
104
 $(CTBUILDDIR)/eCosTestUtils.o \
105
 $(CTBUILDDIR)/eCosThreadUtils.o \
106
 $(CTBUILDDIR)/eCosTrace.o \
107
 $(CTBUILDDIR)/ecutils.o \
108
 $(CTBUILDDIR)/filename.o \
109
 $(CTBUILDDIR)/finddlg.o \
110
 $(CTBUILDDIR)/flags.o \
111
 $(CTBUILDDIR)/folderdlg.o \
112
 $(CTBUILDDIR)/htmlparser.o \
113
 $(CTBUILDDIR)/licensedlg.o \
114
 $(CTBUILDDIR)/mainwin.o \
115
 $(CTBUILDDIR)/mltwin.o \
116
 $(CTBUILDDIR)/outputwin.o \
117
 $(CTBUILDDIR)/packagesdlg.o \
118
 $(CTBUILDDIR)/platformeditordlg.o \
119
 $(CTBUILDDIR)/platformsdlg.o \
120
 $(CTBUILDDIR)/propertywin.o \
121
 $(CTBUILDDIR)/Properties.o \
122
 $(CTBUILDDIR)/reposdlg.o \
123
 $(CTBUILDDIR)/ResetAttributes.o \
124
 $(CTBUILDDIR)/runtestsdlg.o \
125
 $(CTBUILDDIR)/sectiondlg.o \
126
 $(CTBUILDDIR)/settingsdlg.o \
127
 $(CTBUILDDIR)/shortdescrwin.o \
128
 $(CTBUILDDIR)/solutionswin.o \
129
 $(CTBUILDDIR)/Subprocess.o \
130
 $(CTBUILDDIR)/templatesdlg.o \
131
 $(CTBUILDDIR)/TestResource.o
132
 
133
# Compilers
134
CC          = c++
135
RESCOMP     = windres
136
 
137
.SUFFIXES: .o .cpp .cxx
138
 
139
$(CTBUILDDIR)/$(PROGRAM): $(OBJECTS) $(EXTRAOBJECTS)
140
        $(CC) -o $@ $(OBJECTS) $(EXTRAOBJECTS) $(EXTRALDFLAGS) $(LDFLAGS)
141
 
142
install: $(CTBUILDDIR)/$(PROGRAM)
143
        install -D -s $< $(INSTALLDIR)/bin/$(PROGRAM)
144
 
145
.cpp.o :
146
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
147
 
148
.cxx.o :
149
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
150
 
151
$(CTBUILDDIR)/configtoolres.o: $(CTDIR)/configtool.rc
152
        $(RESCOMP) -i $< -o $@ --preprocessor "$(CC) -c -E -xc-header -DRC_INVOKED" $(RCFLAGS) --include-dir $(CTDIR) --define __GNUWIN32__
153
 
154
clean:
155
        rm -f $(CTBUILDDIR)/$(PROGRAM) $(CTBUILDDIR)/*.o
156
 
157
### GUI Configtool files
158
 
159
$(CTBUILDDIR)/aboutdlg.o: $(CTDIR)/aboutdlg.cpp $(CTDIR)/aboutdlg.h $(CTDIR)/symbols.h
160
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
161
 
162
$(CTBUILDDIR)/admindlg.o: $(CTDIR)/admindlg.cpp $(CTDIR)/admindlg.h
163
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
164
 
165
$(CTBUILDDIR)/appsettings.o: $(CTDIR)/appsettings.cpp $(CTDIR)/appsettings.h
166
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
167
 
168
$(CTBUILDDIR)/buildoptionsdlg.o: $(CTDIR)/buildoptionsdlg.cpp $(CTDIR)/buildoptionsdlg.h
169
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
170
 
171
$(CTBUILDDIR)/choosereposdlg.o: $(CTDIR)/choosereposdlg.cpp $(CTDIR)/choosereposdlg.h
172
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
173
 
174
$(CTBUILDDIR)/configitem.o: $(CTDIR)/configitem.cpp $(CTDIR)/configitem.h
175
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
176
 
177
$(CTBUILDDIR)/configpropdlg.o: $(CTDIR)/configpropdlg.cpp $(CTDIR)/configpropdlg.h
178
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
179
 
180
$(CTBUILDDIR)/configtool.o: $(CTDIR)/configtool.cpp $(CTDIR)/configtool.h
181
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
182
 
183
$(CTBUILDDIR)/configtooldoc.o: $(CTDIR)/configtooldoc.cpp $(CTDIR)/configtooldoc.h
184
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
185
 
186
$(CTBUILDDIR)/configtoolview.o: $(CTDIR)/configtoolview.cpp $(CTDIR)/configtoolview.h
187
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
188
 
189
$(CTBUILDDIR)/configtree.o: $(CTDIR)/configtree.cpp $(CTDIR)/configtree.h
190
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
191
 
192
$(CTBUILDDIR)/conflictsdlg.o: $(CTDIR)/conflictsdlg.cpp $(CTDIR)/conflictsdlg.h
193
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
194
 
195
$(CTBUILDDIR)/conflictwin.o: $(CTDIR)/conflictwin.cpp $(CTDIR)/conflictwin.h
196
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
197
 
198
$(CTBUILDDIR)/docsystem.o: $(CTDIR)/docsystem.cpp $(CTDIR)/docsystem.h
199
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
200
 
201
$(CTBUILDDIR)/ecutils.o: $(CTDIR)/ecutils.cpp $(CTDIR)/ecutils.h
202
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
203
 
204
$(CTBUILDDIR)/filename.o: $(CTDIR)/filename.cpp $(CTDIR)/filename.h
205
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
206
 
207
$(CTBUILDDIR)/finddlg.o: $(CTDIR)/finddlg.cpp $(CTDIR)/finddlg.h
208
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
209
 
210
$(CTBUILDDIR)/folderdlg.o: $(CTDIR)/folderdlg.cpp $(CTDIR)/folderdlg.h
211
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
212
 
213
$(CTBUILDDIR)/htmlparser.o: $(CTDIR)/htmlparser.cpp $(CTDIR)/htmlparser.h
214
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
215
 
216
$(CTBUILDDIR)/licensedlg.o: $(CTDIR)/licensedlg.cpp $(CTDIR)/licensedlg.h
217
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
218
 
219
$(CTBUILDDIR)/mainwin.o: $(CTDIR)/mainwin.cpp $(CTDIR)/mainwin.h
220
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
221
 
222
$(CTBUILDDIR)/mltwin.o: $(CTDIR)/mltwin.cpp $(CTDIR)/mltwin.h
223
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
224
 
225
$(CTBUILDDIR)/outputwin.o: $(CTDIR)/outputwin.cpp $(CTDIR)/outputwin.h
226
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
227
 
228
$(CTBUILDDIR)/packagesdlg.o: $(CTDIR)/packagesdlg.cpp $(CTDIR)/packagesdlg.h
229
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
230
 
231
$(CTBUILDDIR)/platformeditordlg.o: $(CTDIR)/platformeditordlg.cpp $(CTDIR)/platformeditordlg.h
232
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
233
 
234
$(CTBUILDDIR)/platformsdlg.o: $(CTDIR)/platformsdlg.cpp $(CTDIR)/platformsdlg.h
235
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
236
 
237
$(CTBUILDDIR)/propertywin.o: $(CTDIR)/propertywin.cpp $(CTDIR)/propertywin.h
238
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
239
 
240
$(CTBUILDDIR)/reposdlg.o: $(CTDIR)/reposdlg.cpp $(CTDIR)/reposdlg.h
241
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
242
 
243
$(CTBUILDDIR)/runtestsdlg.o: $(CTDIR)/runtestsdlg.cpp $(CTDIR)/runtestsdlg.h
244
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
245
 
246
$(CTBUILDDIR)/sectiondlg.o: $(CTDIR)/sectiondlg.cpp $(CTDIR)/sectiondlg.h
247
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
248
 
249
$(CTBUILDDIR)/settingsdlg.o: $(CTDIR)/settingsdlg.cpp $(CTDIR)/settingsdlg.h
250
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
251
 
252
$(CTBUILDDIR)/shortdescrwin.o: $(CTDIR)/shortdescrwin.cpp $(CTDIR)/shortdescrwin.h
253
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
254
 
255
$(CTBUILDDIR)/solutionswin.o: $(CTDIR)/solutionswin.cpp $(CTDIR)/solutionswin.h
256
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
257
 
258
$(CTBUILDDIR)/templatesdlg.o: $(CTDIR)/templatesdlg.cpp $(CTDIR)/templatesdlg.h
259
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
260
 
261
### Common files
262
 
263
$(CTBUILDDIR)/build.o:  $(ECOSSRCDIR)/tools/configtool/common/common/build.cxx $(ECOSSRCDIR)/tools/configtool/common/common/build.hxx
264
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
265
 
266
$(CTBUILDDIR)/flags.o:  $(ECOSSRCDIR)/tools/configtool/common/common/flags.cxx $(ECOSSRCDIR)/tools/configtool/common/common/flags.hxx
267
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
268
 
269
$(CTBUILDDIR)/Collections.o:    $(ECOSSRCDIR)/tools/Utils/common/Collections.cpp
270
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
271
 
272
$(CTBUILDDIR)/Properties.o:     $(ECOSSRCDIR)/tools/Utils/common/Properties.cpp
273
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
274
 
275
$(CTBUILDDIR)/Subprocess.o:     $(ECOSSRCDIR)/tools/Utils/common/Subprocess.cpp
276
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
277
 
278
$(CTBUILDDIR)/eCosSerial.o:     $(ECOSSRCDIR)/tools/Utils/common/eCosSerial.cpp
279
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
280
 
281
$(CTBUILDDIR)/eCosSocket.o:     $(ECOSSRCDIR)/tools/Utils/common/eCosSocket.cpp
282
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
283
 
284
$(CTBUILDDIR)/eCosStd.o:        $(ECOSSRCDIR)/tools/Utils/common/eCosStd.cpp
285
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
286
 
287
$(CTBUILDDIR)/eCosThreadUtils.o:        $(ECOSSRCDIR)/tools/Utils/common/eCosThreadUtils.cpp
288
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
289
 
290
$(CTBUILDDIR)/eCosTrace.o:      $(ECOSSRCDIR)/tools/Utils/common/eCosTrace.cpp
291
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
292
 
293
$(CTBUILDDIR)/eCosTest.o:       $(ECOSSRCDIR)/tools/ecostest/common/eCosTest.cpp
294
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
295
 
296
$(CTBUILDDIR)/eCosTestDownloadFilter.o: $(ECOSSRCDIR)/tools/ecostest/common/eCosTestDownloadFilter.cpp
297
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
298
 
299
$(CTBUILDDIR)/eCosTestPlatform.o:       $(ECOSSRCDIR)/tools/ecostest/common/eCosTestPlatform.cpp
300
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
301
 
302
$(CTBUILDDIR)/eCosTestSerialFilter.o:   $(ECOSSRCDIR)/tools/ecostest/common/eCosTestSerialFilter.cpp
303
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
304
 
305
$(CTBUILDDIR)/eCosTestUtils.o:  $(ECOSSRCDIR)/tools/ecostest/common/eCosTestUtils.cpp
306
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
307
 
308
$(CTBUILDDIR)/ResetAttributes.o:        $(ECOSSRCDIR)/tools/ecostest/common/ResetAttributes.cpp
309
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
310
 
311
$(CTBUILDDIR)/TestResource.o:   $(ECOSSRCDIR)/tools/ecostest/common/TestResource.cpp
312
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
313
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.