1
# Component project makefile generated by the project manager
8
CONFIGLETTE = compConfig.c
9
TGT_DIR = $(WIND_BASE)/target
10
EXTERNAL_BINARIES_DIR = $(PRJ_DIR)/extbin/$(BUILD_SPEC)
11
COMPONENT_NAME = db_upgrade
13
defaultTarget: $(COMPONENT_NAME).cm
16
# default definition for CPU and TOOL (needed by defs.project)
23
## CPU and TOOL info for build specification 'PENTIUM2gnu.debug'
25
ifeq ($(BUILD_SPEC),PENTIUM2gnu.debug)
28
SYS_OBJ_DIR = $(WIND_BASE)/target/lib/obj$(CPU)$(TOOL)vx
29
USER_OBJ_DIR = $(WIND_BASE)/target/user/objs/obj$(CPU)$(TOOL)
30
PRJ_OBJS = db_upgrade.o \
32
COMPONENT_OBJS = db_upgrade.o
33
DEPENDENCY_FILES = db_upgrade.d \
35
NUMBER_OF_COMPONENT_OBJS = $(words $(COMPONENT_OBJS))
39
## CPU and TOOL info for build specification 'PENTIUM2gnu.release'
41
ifeq ($(BUILD_SPEC),PENTIUM2gnu.release)
44
SYS_OBJ_DIR = $(WIND_BASE)/target/lib/obj$(CPU)$(TOOL)vx
45
USER_OBJ_DIR = $(WIND_BASE)/target/user/objs/obj$(CPU)$(TOOL)
46
PRJ_OBJS = db_upgrade.o \
48
COMPONENT_OBJS = db_upgrade.o
49
DEPENDENCY_FILES = db_upgrade.d \
51
NUMBER_OF_COMPONENT_OBJS = $(words $(COMPONENT_OBJS))
55
## CPU and TOOL info for build specification 'PENTIUMgnu.debug'
57
ifeq ($(BUILD_SPEC),PENTIUMgnu.debug)
60
SYS_OBJ_DIR = $(WIND_BASE)/target/lib/obj$(CPU)$(TOOL)vx
61
USER_OBJ_DIR = $(WIND_BASE)/target/user/objs/obj$(CPU)$(TOOL)
62
PRJ_OBJS = db_upgrade.o \
64
COMPONENT_OBJS = db_upgrade.o
65
DEPENDENCY_FILES = db_upgrade.d \
67
NUMBER_OF_COMPONENT_OBJS = $(words $(COMPONENT_OBJS))
71
## CPU and TOOL info for build specification 'SIMSPARCSOLARISgnu.debug'
73
ifeq ($(BUILD_SPEC),SIMSPARCSOLARISgnu.debug)
76
SYS_OBJ_DIR = $(WIND_BASE)/target/lib/obj$(CPU)$(TOOL)vx
77
USER_OBJ_DIR = $(WIND_BASE)/target/user/objs/obj$(CPU)$(TOOL)
78
PRJ_OBJS = db_upgrade.o \
80
COMPONENT_OBJS = db_upgrade.o
81
DEPENDENCY_FILES = db_upgrade.d \
83
NUMBER_OF_COMPONENT_OBJS = $(words $(COMPONENT_OBJS))
87
include $(TGT_DIR)/h/make/defs.project
90
## build-configuration info for build specification 'PENTIUM2gnu.debug'
92
ifeq ($(BUILD_SPEC),PENTIUM2gnu.debug)
99
CFLAGS = -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2
100
CFLAGS_AS = -mcpu=pentiumpro -march=pentiumpro -ansi -g -nostdlib -fno-builtin -fno-defer-pop -P -x assembler-with-cpp -Wall -I. -I$(WIND_BASE)/target/h -DCPU=PENTIUM2
101
CPP = ccpentium -E -P
102
CPPFILT = c++filtpentium --strip-underscores
105
LDPARTIAL = ccpentium -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -nostdlib -r -Wl,-X
106
LD_PARTIAL_FLAGS = -X -r
108
OPTION_DEFINE_MACRO = -D
109
OPTION_GENERATE_DEPENDENCY_FILE = -MD
110
OPTION_INCLUDE_DIR = -I
115
## end build-configuration info for build specification 'PENTIUM2gnu.debug'
120
## build-configuration info for build specification 'PENTIUM2gnu.release'
122
ifeq ($(BUILD_SPEC),PENTIUM2gnu.release)
129
CFLAGS = -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -O2 -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2
130
CFLAGS_AS = -mcpu=pentiumpro -march=pentiumpro -ansi -O2 -nostdlib -fno-builtin -fno-defer-pop -P -x assembler-with-cpp -Wall -I. -I$(WIND_BASE)/target/h -DCPU=PENTIUM2
131
CPP = ccpentium -E -P
132
CPPFILT = c++filtpentium --strip-underscores
135
LDPARTIAL = ccpentium -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -nostdlib -r -Wl,-X
136
LD_PARTIAL_FLAGS = -X -r
138
OPTION_DEFINE_MACRO = -D
139
OPTION_GENERATE_DEPENDENCY_FILE = -MD
140
OPTION_INCLUDE_DIR = -I
145
## end build-configuration info for build specification 'PENTIUM2gnu.release'
150
## build-configuration info for build specification 'PENTIUMgnu.debug'
152
ifeq ($(BUILD_SPEC),PENTIUMgnu.debug)
159
CFLAGS = -mcpu=pentium -march=pentium -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM
160
CFLAGS_AS = -mcpu=pentium -march=pentium -ansi -g -nostdlib -fno-builtin -fno-defer-pop -P -x assembler-with-cpp -Wall -I. -I$(WIND_BASE)/target/h -DCPU=PENTIUM
161
CPP = ccpentium -E -P
162
CPPFILT = c++filtpentium --strip-underscores
165
LDPARTIAL = ccpentium -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -nostdlib -r -Wl,-X
166
LD_PARTIAL_FLAGS = -X -r
168
OPTION_DEFINE_MACRO = -D
169
OPTION_GENERATE_DEPENDENCY_FILE = -MD
170
OPTION_INCLUDE_DIR = -I
175
## end build-configuration info for build specification 'PENTIUMgnu.debug'
180
## build-configuration info for build specification 'SIMSPARCSOLARISgnu.debug'
182
ifeq ($(BUILD_SPEC),SIMSPARCSOLARISgnu.debug)
189
CFLAGS = -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -fno-builtin -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=SIMSPARCSOLARIS
190
CFLAGS_AS = -ansi -g -fno-builtin -P -x assembler-with-cpp -Wall -I. -I$(WIND_BASE)/target/h -DCPU=SIMSPARCSOLARIS
192
CPPFILT = c++filtsparc --strip-underscores
194
LDFLAGS = -T $(WIND_BASE)/target/config/solaris/linker-script
195
LDPARTIAL = ccsparc -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -nostdlib -r -Wl,-X
196
LD_PARTIAL_FLAGS = -nostdlib -r
198
OPTION_DEFINE_MACRO = -D
199
OPTION_GENERATE_DEPENDENCY_FILE = -MD
200
OPTION_INCLUDE_DIR = -I
205
## end build-configuration info for build specification 'SIMSPARCSOLARISgnu.debug'
209
# override make definitions only below this line
212
# override make definitions only above this line
214
include $(TGT_DIR)/h/make/rules.project
218
# Dummy target to force external make
229
include $(PRJ_DIR)/Makefile.custom
232
## build rules for build specification 'PENTIUM2gnu.debug'
234
ifeq ($(BUILD_SPEC),PENTIUM2gnu.debug)
237
$(CC) -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 -c $<
240
ccpentium -E -P -M -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 $< > $@
242
%.o : $(PRJ_DIR)/../%.c
243
$(CC) -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 -c $<
245
%.d : $(PRJ_DIR)/../%.c
246
ccpentium -E -P -M -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 $< > $@
249
## end build rules for build specification 'PENTIUM2gnu.debug'
254
## build rules for build specification 'PENTIUM2gnu.release'
256
ifeq ($(BUILD_SPEC),PENTIUM2gnu.release)
259
$(CC) -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -O2 -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 -c $<
262
ccpentium -E -P -M -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -O2 -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 $< > $@
264
%.o : $(PRJ_DIR)/../%.c
265
$(CC) -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -O2 -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 -c $<
267
%.d : $(PRJ_DIR)/../%.c
268
ccpentium -E -P -M -mcpu=pentiumpro -march=pentiumpro -ansi -DRW_MULTI_THREAD -D_REENTRANT -O2 -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM2 $< > $@
271
## end build rules for build specification 'PENTIUM2gnu.release'
276
## build rules for build specification 'PENTIUMgnu.debug'
278
ifeq ($(BUILD_SPEC),PENTIUMgnu.debug)
281
$(CC) -mcpu=pentium -march=pentium -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM -c $<
284
ccpentium -E -P -M -mcpu=pentium -march=pentium -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM $< > $@
286
%.o : $(PRJ_DIR)/../%.c
287
$(CC) -mcpu=pentium -march=pentium -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM -c $<
289
%.d : $(PRJ_DIR)/../%.c
290
ccpentium -E -P -M -mcpu=pentium -march=pentium -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -nostdlib -fno-builtin -fno-defer-pop -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=PENTIUM $< > $@
293
## end build rules for build specification 'PENTIUMgnu.debug'
298
## build rules for build specification 'SIMSPARCSOLARISgnu.debug'
300
ifeq ($(BUILD_SPEC),SIMSPARCSOLARISgnu.debug)
303
$(CC) -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -fno-builtin -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=SIMSPARCSOLARIS -c $<
306
ccsparc -E -P -M -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -fno-builtin -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=SIMSPARCSOLARIS $< > $@
308
%.o : $(PRJ_DIR)/../%.c
309
$(CC) -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -fno-builtin -MD -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=SIMSPARCSOLARIS -c $<
311
%.d : $(PRJ_DIR)/../%.c
312
ccsparc -E -P -M -ansi -DRW_MULTI_THREAD -D_REENTRANT -g -fno-builtin -Wall -I. -I$(WIND_BASE)/target/h -I$(PRJ_DIR)/../.. -I$(PRJ_DIR)/../../../include -I$(PRJ_DIR)/../../../include_auto -DCPU=SIMSPARCSOLARIS $< > $@
315
## end build rules for build specification 'SIMSPARCSOLARISgnu.debug'
320
# Rule for configurable, binary component
322
# Downloadable component module build rules
324
db_upgrade.cm: $(PRJ_OBJS) mxrDoc.nm depend
326
# Partially link all db_upgrade modules together
327
# including the configlette modules
329
$(LD) -r -o $@ $(PRJ_OBJS) $(CC_LIB)
331
# Generate _vxMain and _vxExit by munching
333
$(NM) $@ | $(MUNCH) > db_upgrade.c
334
$(COMPILE_TRADITIONAL) db_upgrade_ctdt.c -o db_upgrade_ctdt.o
335
$(LD) -r -o db_upgrade.tmp $@ db_upgrade_ctdt.o
337
$(MV) db_upgrade.tmp $@
339
# Adds entry point table section to db_upgrade component
341
$(PD_EPT_DDE_ADD) $@ $(PRJ_DIR)/$(PRJ_FILE) INDEX $(BUILD_SPEC)
345
# Partial link build rules
346
# Partially link all db_upgrade modules together
347
# If no source files, then generates dummy.c
350
ifeq ($(COMPONENT_OBJS),)
352
$(CFG_GEN) $(PRJ_DIR)/$(PRJ_FILE) dummyCGen $(PRJ_TYPE)
354
db_upgrade.pl: dummy.o mxrDoc.nm depend
355
$(LD) -r -o $@ dummy.o
357
db_upgrade.pl: $(COMPONENT_OBJS) mxrDoc.nm depend
358
$(LD) -r -o $@ $(COMPONENT_OBJS)
362
# nm file containing symbol information for all component objects
365
EXTERNAL_BINARIES_DIR_PATTERN_1 = $(subst \,\\,$(PRJ_DIR)/extbin/$(BUILD_SPEC)/)
366
EXTERNAL_BINARIES_DIR_PATTERN = $(subst /,\/,$(EXTERNAL_BINARIES_DIR_PATTERN_1))
368
mxrDoc.nm: mxrDoc.size $(COMPONENT_OBJS)
370
# if there are no object files, make a blank mxr doc
371
ifeq ($(NUMBER_OF_COMPONENT_OBJS),0)
374
# make sure object file name is in mxrDoc.nm even if there
375
# is only one object file
376
$(ECHO) db_upgrade.o: >> $@
377
$(NM) db_upgrade.o | sed -e "s|$(EXTERNAL_BINARIES_DIR_PATTERN)||g" >> $@
381
# size file containing size information for all component objects
383
mxrDoc.size: $(COMPONENT_OBJS) $(PRJ_DIR)/component.cdf
385
ifeq ($(NUMBER_OF_COMPONENT_OBJS),0)
388
$(SIZE) db_upgrade.o | sed -e "s|$(EXTERNAL_BINARIES_DIR_PATTERN)||g" >> $@
392
## user-defined rules for build specification 'PENTIUM2gnu.debug'
394
ifeq ($(BUILD_SPEC),PENTIUM2gnu.debug)
396
## end user-defined rules for build specification 'PENTIUM2gnu.debug'
401
## user-defined rules for build specification 'PENTIUM2gnu.release'
403
ifeq ($(BUILD_SPEC),PENTIUM2gnu.release)
405
## end user-defined rules for build specification 'PENTIUM2gnu.release'
410
## user-defined rules for build specification 'PENTIUMgnu.debug'
412
ifeq ($(BUILD_SPEC),PENTIUMgnu.debug)
414
## end user-defined rules for build specification 'PENTIUMgnu.debug'
419
## user-defined rules for build specification 'SIMSPARCSOLARISgnu.debug'
421
ifeq ($(BUILD_SPEC),SIMSPARCSOLARISgnu.debug)
423
## end user-defined rules for build specification 'SIMSPARCSOLARISgnu.debug'