April 05, 2002
My makefile is like this

SOURCEDIR=..
INCLUDEDIR=$(SOURCEDIR)
OBJ=aaa.obj bbb.obj ccc.obj

c.obj :
sc -c -I$(INCLUDEDIR) $(SOURCEDIR)\$*

test.exe : $(OBJ)
sc -o$@ $(OBJ)

aaa.obj : $(SOURCEDIR)\aaa.c
bbb.obj : $(SOURCEDIR)\bbb.c
ccc.obj : $(SOURCEDIR)\ccc.c

The result is as follows:

Error 2:File Not Found aaa.obj

However if I copy aaa.c, bbb.c, ccc.c to the current directory and change SOURCEDIR to (.), SMAKE did the right thing.

Thanks for your help,
Steve