Hi,

I am using the cygwin Make under NT4. I am having a problem using the
automatic variables $(*F) and $(*D) in my makefile, they don't hold any
value. The other automatic variables such as $(@F) and $(<D) do work. Here
is my makefile, 


OUTDIR  =./Debug
APPLICATION = TmDebug.out

SOURCES_C=ISR.c

SOURCES_CPP=MainFunc.cpp \
        InterfaceCpp.cpp \
        Classes/SGDataBuffer.cpp \
        Classes/SGMsgBuffer.cpp\
        
OBJECTS_C = $(SOURCES_C:.c=.o)
OBJECTS_CPP = $(SOURCES_CPP:.cpp=.o)

DEPENDS_C = $(OBJECTS_C:.o=.d)
DEPENDS_CPP = $(OBJECTS_CPP:.o=.d)

OBJECTS = $(OBJECTS_CPP) $(OBJECTS_C)
DEPENDS = $(DEPENDS_C) $(DEPENDS_CPP)

OUT_OBJECTS=$(OBJECTS:%=$(OUTDIR)/%)

DUMMY_1 = $(OBJECTS:.o=.d1)
DUMMY_2 = $(OBJECTS:.o=.d2)

CC          = cc/bin/cc
CPP                     = cc/bin/CC
LD          = cc/bin/tmCC
AR          = cc/bin/tmar
CINCS       = -I. -Icc/Include/WinNT -Icc/Include/tmlib -Icc/Include
-Icc/Include/tm1
CFLAGS      = -g  -target tm1 -c -O2
CPPFLAGS        = -g  -target tm1 -c -O2
LDFLAGS     = -g -target tm1 -O2


target: deldepend Makefile.dbg
        make -f makefile.dbg $(APPLICATION)


$(APPLICATION): bsp.a $(OUT_OBJECTS)
        @ echo "Linking $(APPLICATION)"
        $(LD) $(LDFLAGS) -o $(APPLICATION) \
                $(OUT_OBJECTS) 



deldepend :
        @ rm depend.d
        make -f makefile.dbg depend.d



depend.d : $(DUMMY_1) $(DUMMY_2)


$(DUMMY_1) :
        echo $(OUTDIR)/$*.e : $*.o >> depend.d


$(DUMMY_2) :
        @ rm $(*D)/$(*F).d
        make -f makefile.dbg $(*D)/$(*F).d
        @ type $(*D)/$(*F).d >>depend.d

$(DEPENDS_C):
        @ echo "Updating dependencies $(*D)/$(*F).c"
        $(TCS)/bin/cpp -MM -MD $@ $(CINCS) $(*D)/$(*F).c


$(DEPENDS_CPP):
        @ echo "Updating dependencies $(*D)/$(*F).cpp"
        $(TCS)/bin/cpp -MM -MD $@ $(CINCS) $(*D)/$(*F).cpp


Regards,

John




Dr John Elliott
BBC Research & Development
Transmission Systems Group
e-mail [EMAIL PROTECTED]
tel +44 (0)1737 8 39760
fax +44 (0)1737 8 39667

Reply via email to