From: H Johnson Newsgroups: comp.os.msdos.djgpp Subject: Problems with file names with Make Date: Fri, 07 Mar 2003 16:07:12 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3i5i6vsg9rgbfbn00p2dna50v1e943ucpf@4ax.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT supernews DOT com Lines: 34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am pulling my hair out trying to get Make to use "\" as directory separators vs. the "/" UNIX style. Nothing I have tried seems to work including escaping the "\". I am running Win2k and using make version 3.79.1 Making a test Makefile reproduces the problem. CC = gcc # Directories holding the source files. SRCDIR = libc # Path to include directory. CINCLUDE = -Iinclude # Source files (C and Assembler). SRC_C = $(foreach dir, $(SRCDIR), $(wildcard $(dir)/*.c)) dep: $(CC) $(CINCLUDE) -nostdinc -fno-builtin -M $(SRC_C) > ./depend.mk running as is works fine except everything dumped into depend.mk has "/" instead of "\". By changing the SRC_C line at the end to read "$(dir)\.c))" produces no output. Changing to "$(dir)\\.c))" produces nothing as well. Any suggestion greatly appreciated. - H. Johnson ======================================================= Just de-classify the e-mail address for correct reply-to =======================================================