OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [wxwin/] [makefile.gnu] - Blame information for rev 26

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
# File:       eCos configtool makefile for GNU tools
2
# Author:     John Dallaway 
3
# Copyright:  Copyright (c) John Dallaway 2003
4
 
5
# Usage:
6
#   cd emptydir
7
#   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 ]
8
 
9
INSTALLDIR=INSTALLDIR_not_defined
10
WXDIR=WXDIR_not_defined
11
 
12
CTBUILDDIR=$(shell pwd)
13
ECOSSRCDIR=$(INSTALLDIR)/src
14
CTDIR=$(ECOSSRCDIR)/tools/configtool/standalone/wxwin
15
TCLDIR=TCLDIR_use_system
16
USEEXPERIMENTALCODE=1
17
 
18
EXTRACPPFLAGS=\
19
  -I$(TCLDIR)/include \
20
  -I$(INSTALLDIR)/include \
21
  -I$(ECOSSRCDIR)/tools/configtool/common/common \
22
  -I$(ECOSSRCDIR)/tools/Utils/common \
23
  -I$(ECOSSRCDIR)/tools/ecostest/common \
24
  -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE)
25
EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl
26
 
27
ifneq (,$(findstring CYGWIN, $(shell uname)))
28
  PROGRAM=configtool.exe
29
  CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags` -D_WIN32 -D__WIN32__ -DSTRICT
30
  LDFLAGS=`$(WXDIR)/bin/wx-config --libs` -lshlwapi -Wl,--subsystem,windows
31
  EXTRAOBJECTS=$(CTBUILDDIR)/configtoolres.o
32
else
33
  PROGRAM=configtool
34
  CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags`
35
  LDFLAGS=`$(WXDIR)/bin/wx-config --libs`
36
  EXTRAOBJECTS=
37
endif
38
 
39
ifeq "$(DEBUG)" ""
40
  CPPDEBUGOPTIONS=-O2
41
else
42
  CPPDEBUGOPTIONS=-ggdb
43
endif
44
 
45
OBJECTS = \
46
 $(CTBUILDDIR)/aboutdlg.o \
47
 $(CTBUILDDIR)/admindlg.o \
48
 $(CTBUILDDIR)/appsettings.o \
49
 $(CTBUILDDIR)/build.o \
50
 $(CTBUILDDIR)/buildoptionsdlg.o \
51
 $(CTBUILDDIR)/choosereposdlg.o \
52
 $(CTBUILDDIR)/Collections.o \
53
 $(CTBUILDDIR)/configitem.o \
54
 $(CTBUILDDIR)/configpropdlg.o \
55
 $(CTBUILDDIR)/configtool.o \
56
 $(CTBUILDDIR)/configtooldoc.o \
57
 $(CTBUILDDIR)/configtoolview.o \
58
 $(CTBUILDDIR)/configtree.o \
59
 $(CTBUILDDIR)/conflictsdlg.o \
60
 $(CTBUILDDIR)/conflictwin.o \
61
 $(CTBUILDDIR)/docsystem.o \
62
 $(CTBUILDDIR)/ecscrolwin.o \
63
 $(CTBUILDDIR)/eCosSerial.o \
64
 $(CTBUILDDIR)/eCosSocket.o \
65
 $(CTBUILDDIR)/eCosStd.o \
66
 $(CTBUILDDIR)/eCosTest.o \
67
 $(CTBUILDDIR)/eCosTestDownloadFilter.o \
68
 $(CTBUILDDIR)/eCosTestPlatform.o \
69
 $(CTBUILDDIR)/eCosTestSerialFilter.o \
70
 $(CTBUILDDIR)/eCosTestUtils.o \
71
 $(CTBUILDDIR)/eCosThreadUtils.o \
72
 $(CTBUILDDIR)/eCosTrace.o \
73
 $(CTBUILDDIR)/ecutils.o \
74
 $(CTBUILDDIR)/filename.o \
75
 $(CTBUILDDIR)/finddlg.o \
76
 $(CTBUILDDIR)/flags.o \
77
 $(CTBUILDDIR)/folderdlg.o \
78
 $(CTBUILDDIR)/htmlparser.o \
79
 $(CTBUILDDIR)/licensedlg.o \
80
 $(CTBUILDDIR)/mainwin.o \
81
 $(CTBUILDDIR)/mltwin.o \
82
 $(CTBUILDDIR)/msgdlgex.o \
83
 $(CTBUILDDIR)/outputwin.o \
84
 $(CTBUILDDIR)/packagesdlg.o \
85
 $(CTBUILDDIR)/platformeditordlg.o \
86
 $(CTBUILDDIR)/platformsdlg.o \
87
 $(CTBUILDDIR)/propertywin.o \
88
 $(CTBUILDDIR)/Properties.o \
89
 $(CTBUILDDIR)/reposdlg.o \
90
 $(CTBUILDDIR)/ResetAttributes.o \
91
 $(CTBUILDDIR)/runtestsdlg.o \
92
 $(CTBUILDDIR)/sectiondlg.o \
93
 $(CTBUILDDIR)/settingsdlg.o \
94
 $(CTBUILDDIR)/shortdescrwin.o \
95
 $(CTBUILDDIR)/solutionswin.o \
96
 $(CTBUILDDIR)/splittree.o \
97
 $(CTBUILDDIR)/Subprocess.o \
98
 $(CTBUILDDIR)/templatesdlg.o \
99
 $(CTBUILDDIR)/TestResource.o
100
 
101
# Compilers
102
CC          = c++
103
RESCOMP     = windres
104
 
105
.SUFFIXES: .o .cpp .cxx
106
 
107
$(CTBUILDDIR)/$(PROGRAM): $(OBJECTS) $(EXTRAOBJECTS)
108
        $(CC) -o $@ $(OBJECTS) $(EXTRAOBJECTS) $(EXTRALDFLAGS) $(LDFLAGS)
109
 
110
install: $(CTBUILDDIR)/$(PROGRAM)
111
        install -s $< $(INSTALLDIR)/bin
112
 
113
.cpp.o :
114
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
115
 
116
.cxx.o :
117
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
118
 
119
$(CTBUILDDIR)/configtoolres.o: $(CTDIR)/configtool.rc
120
        $(RESCOMP) -i $< -o $@ --preprocessor "$(CC) -c -E -xc-header -DRC_INVOKED" --include-dir $(WXDIR)/include --include-dir $(CTDIR) --define __GNUWIN32__
121
 
122
clean:
123
        rm -f $(CTBUILDDIR)/$(PROGRAM) $(CTBUILDDIR)/*.o
124
 
125
### GUI Configtool files
126
 
127
$(CTBUILDDIR)/aboutdlg.o: $(CTDIR)/aboutdlg.cpp $(CTDIR)/aboutdlg.h $(CTDIR)/symbols.h
128
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
129
 
130
$(CTBUILDDIR)/admindlg.o: $(CTDIR)/admindlg.cpp $(CTDIR)/admindlg.h
131
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
132
 
133
$(CTBUILDDIR)/appsettings.o: $(CTDIR)/appsettings.cpp $(CTDIR)/appsettings.h
134
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
135
 
136
$(CTBUILDDIR)/buildoptionsdlg.o: $(CTDIR)/buildoptionsdlg.cpp $(CTDIR)/buildoptionsdlg.h
137
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
138
 
139
$(CTBUILDDIR)/choosereposdlg.o: $(CTDIR)/choosereposdlg.cpp $(CTDIR)/choosereposdlg.h
140
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
141
 
142
$(CTBUILDDIR)/configitem.o: $(CTDIR)/configitem.cpp $(CTDIR)/configitem.h
143
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
144
 
145
$(CTBUILDDIR)/configpropdlg.o: $(CTDIR)/configpropdlg.cpp $(CTDIR)/configpropdlg.h
146
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
147
 
148
$(CTBUILDDIR)/configtool.o: $(CTDIR)/configtool.cpp $(CTDIR)/configtool.h
149
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
150
 
151
$(CTBUILDDIR)/configtooldoc.o: $(CTDIR)/configtooldoc.cpp $(CTDIR)/configtooldoc.h
152
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
153
 
154
$(CTBUILDDIR)/configtoolview.o: $(CTDIR)/configtoolview.cpp $(CTDIR)/configtoolview.h
155
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
156
 
157
$(CTBUILDDIR)/configtree.o: $(CTDIR)/configtree.cpp $(CTDIR)/configtree.h
158
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
159
 
160
$(CTBUILDDIR)/conflictsdlg.o: $(CTDIR)/conflictsdlg.cpp $(CTDIR)/conflictsdlg.h
161
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
162
 
163
$(CTBUILDDIR)/conflictwin.o: $(CTDIR)/conflictwin.cpp $(CTDIR)/conflictwin.h
164
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
165
 
166
$(CTBUILDDIR)/docsystem.o: $(CTDIR)/docsystem.cpp $(CTDIR)/docsystem.h
167
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
168
 
169
$(CTBUILDDIR)/ecutils.o: $(CTDIR)/ecutils.cpp $(CTDIR)/ecutils.h
170
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
171
 
172
$(CTBUILDDIR)/ecscrolwin.o: $(CTDIR)/ecscrolwin.cpp $(CTDIR)/ecscrolwin.h
173
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
174
 
175
$(CTBUILDDIR)/filename.o: $(CTDIR)/filename.cpp $(CTDIR)/filename.h
176
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
177
 
178
$(CTBUILDDIR)/finddlg.o: $(CTDIR)/finddlg.cpp $(CTDIR)/finddlg.h
179
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
180
 
181
$(CTBUILDDIR)/folderdlg.o: $(CTDIR)/folderdlg.cpp $(CTDIR)/folderdlg.h
182
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
183
 
184
$(CTBUILDDIR)/htmlparser.o: $(CTDIR)/htmlparser.cpp $(CTDIR)/htmlparser.h
185
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
186
 
187
$(CTBUILDDIR)/licensedlg.o: $(CTDIR)/licensedlg.cpp $(CTDIR)/licensedlg.h
188
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
189
 
190
$(CTBUILDDIR)/mainwin.o: $(CTDIR)/mainwin.cpp $(CTDIR)/mainwin.h
191
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
192
 
193
$(CTBUILDDIR)/mltwin.o: $(CTDIR)/mltwin.cpp $(CTDIR)/mltwin.h
194
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
195
 
196
$(CTBUILDDIR)/msgdlgex.o: $(CTDIR)/msgdlgex.cpp $(CTDIR)/msgdlgex.h
197
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
198
 
199
$(CTBUILDDIR)/outputwin.o: $(CTDIR)/outputwin.cpp $(CTDIR)/outputwin.h
200
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
201
 
202
$(CTBUILDDIR)/packagesdlg.o: $(CTDIR)/packagesdlg.cpp $(CTDIR)/packagesdlg.h
203
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
204
 
205
$(CTBUILDDIR)/platformeditordlg.o: $(CTDIR)/platformeditordlg.cpp $(CTDIR)/platformeditordlg.h
206
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
207
 
208
$(CTBUILDDIR)/platformsdlg.o: $(CTDIR)/platformsdlg.cpp $(CTDIR)/platformsdlg.h
209
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
210
 
211
$(CTBUILDDIR)/propertywin.o: $(CTDIR)/propertywin.cpp $(CTDIR)/propertywin.h
212
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
213
 
214
$(CTBUILDDIR)/reposdlg.o: $(CTDIR)/reposdlg.cpp $(CTDIR)/reposdlg.h
215
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
216
 
217
$(CTBUILDDIR)/runtestsdlg.o: $(CTDIR)/runtestsdlg.cpp $(CTDIR)/runtestsdlg.h
218
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
219
 
220
$(CTBUILDDIR)/sectiondlg.o: $(CTDIR)/sectiondlg.cpp $(CTDIR)/sectiondlg.h
221
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
222
 
223
$(CTBUILDDIR)/settingsdlg.o: $(CTDIR)/settingsdlg.cpp $(CTDIR)/settingsdlg.h
224
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
225
 
226
$(CTBUILDDIR)/shortdescrwin.o: $(CTDIR)/shortdescrwin.cpp $(CTDIR)/shortdescrwin.h
227
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
228
 
229
$(CTBUILDDIR)/solutionswin.o: $(CTDIR)/solutionswin.cpp $(CTDIR)/solutionswin.h
230
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
231
 
232
$(CTBUILDDIR)/splittree.o: $(CTDIR)/splittree.cpp $(CTDIR)/splittree.h
233
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
234
 
235
$(CTBUILDDIR)/templatesdlg.o: $(CTDIR)/templatesdlg.cpp $(CTDIR)/templatesdlg.h
236
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
237
 
238
### Common files
239
 
240
$(CTBUILDDIR)/build.o:  $(ECOSSRCDIR)/tools/configtool/common/common/build.cxx $(ECOSSRCDIR)/tools/configtool/common/common/build.hxx
241
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
242
 
243
$(CTBUILDDIR)/flags.o:  $(ECOSSRCDIR)/tools/configtool/common/common/flags.cxx $(ECOSSRCDIR)/tools/configtool/common/common/flags.hxx
244
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
245
 
246
$(CTBUILDDIR)/Collections.o:    $(ECOSSRCDIR)/tools/Utils/common/Collections.cpp
247
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
248
 
249
$(CTBUILDDIR)/Properties.o:     $(ECOSSRCDIR)/tools/Utils/common/Properties.cpp
250
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
251
 
252
$(CTBUILDDIR)/Subprocess.o:     $(ECOSSRCDIR)/tools/Utils/common/Subprocess.cpp
253
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
254
 
255
$(CTBUILDDIR)/eCosSerial.o:     $(ECOSSRCDIR)/tools/Utils/common/eCosSerial.cpp
256
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
257
 
258
$(CTBUILDDIR)/eCosSocket.o:     $(ECOSSRCDIR)/tools/Utils/common/eCosSocket.cpp
259
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
260
 
261
$(CTBUILDDIR)/eCosStd.o:        $(ECOSSRCDIR)/tools/Utils/common/eCosStd.cpp
262
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
263
 
264
$(CTBUILDDIR)/eCosThreadUtils.o:        $(ECOSSRCDIR)/tools/Utils/common/eCosThreadUtils.cpp
265
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
266
 
267
$(CTBUILDDIR)/eCosTrace.o:      $(ECOSSRCDIR)/tools/Utils/common/eCosTrace.cpp
268
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
269
 
270
$(CTBUILDDIR)/eCosTest.o:       $(ECOSSRCDIR)/tools/ecostest/common/eCosTest.cpp
271
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
272
 
273
$(CTBUILDDIR)/eCosTestDownloadFilter.o: $(ECOSSRCDIR)/tools/ecostest/common/eCosTestDownloadFilter.cpp
274
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
275
 
276
$(CTBUILDDIR)/eCosTestPlatform.o:       $(ECOSSRCDIR)/tools/ecostest/common/eCosTestPlatform.cpp
277
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
278
 
279
$(CTBUILDDIR)/eCosTestSerialFilter.o:   $(ECOSSRCDIR)/tools/ecostest/common/eCosTestSerialFilter.cpp
280
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
281
 
282
$(CTBUILDDIR)/eCosTestUtils.o:  $(ECOSSRCDIR)/tools/ecostest/common/eCosTestUtils.cpp
283
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
284
 
285
$(CTBUILDDIR)/ResetAttributes.o:        $(ECOSSRCDIR)/tools/ecostest/common/ResetAttributes.cpp
286
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
287
 
288
$(CTBUILDDIR)/TestResource.o:   $(ECOSSRCDIR)/tools/ecostest/common/TestResource.cpp
289
        $(CC) $(CPPDEBUGOPTIONS) -c $(EXTRACPPFLAGS) $(CPPFLAGS) -o $@ $<
290
 

powered by: WebSVN 2.1.0

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