Hi, my former mail was sent to the wrong list, so i try again:
------
Hi,
I work with Gnu make 3.77 on Solaris 7, and I am quite a beginner. I cannot
find
an answer in the manual on this problem:
My problem:
I cannot get simple wildcard expansion when using
SRC := $(wildcard *.c)
so a very simple "build" like (on p.18 in the manual for 3.77):
OBJECTS := $(patsubst %.c,%.o,$(wildcard *.c))
progc : $(OBJECTS)
gcc -o progc $(OBJECTS)
fails.
make is invoked in a directory with many .c files, but SRC will be an empty
string. I have to use SRC = `ls *.c` which works; it gives a space
separated
string of .c files. However, when translating to corresponding .o files:
OBJ =
$(SRC:.c=.o) there is no change, OBJ is identical to SRC.
why these problems?
Pontus H�rling
[EMAIL PROTECTED]