blob: 62a6752c138ef06d08e40db042382196f61a1bff (
plain)
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
|
##########################################################
#
# (c) Copyright Cisco 2000
# All Rights Reserved
#
##########################################################
# TOP_OF_VOB must be defined before including l3defs.mk
TOP_OF_VOB = ..\..\..
# These Must be Properly Defined
THIS_APP_DIR = cdcUtils
THIS_DIRECTORY = Coff_loader
MY_OUTPUT = $(OBJDIR)\Coff_loader.out
# Name(s) of Common VOB directories to include
COMMON_BLD_DIR =
include $(TOP_OF_VOB)\l3defs.mk
all: makeCommonObjs $(MY_OUTPUT)
# Adds the .o file(s) list needed from the Common VOB
makeCommonObjs:
ifneq ($(COMMON_BLD_DIR),)
@for %f in ($(COMMON_BLD_DIR)) do \
make -C $(COMMON_VOB_APP_DIR)\%f \
all VOB=$(VOBNAME) APPDIR=Host\$(THIS_APP_DIR)\$(THIS_DIRECTORY)
endif
# If Common VOB directories to include get the .o files from bin
$(MY_OUTPUT): $(MODULE_OBJS)
ifneq ($(COMMON_BLD_DIR),)
$(LD) -r -o $@.tmp $() $(MODULE_OBJS) $(wildcard ./bin/*.o)
else
$(LD) -r -o $@.tmp $() $(MODULE_OBJS)
endif
$(NM) $@.tmp | munch > _ctdt.c
$(CC) -traditional $(CC_ARCH_SPEC) -c _ctdt.c
$(LD) -r -o $@ _ctdt.o $@.tmp
$(RM)$(subst /,$(DIRCHAR), _ctdt.c _ctdt.o $@.tmp)
cleanall:
@for %f in ($(notdir $(MODULE_OBJS))) do \
$(RM) ..\bin\%f
$(RM) $(MY_OUTPUT)
ifneq ($(COMMON_BLD_DIR),)
$(RM) bin\*.o
$(RM) bin\*.out
endif
|