From: zander AT lysator DOT liu DOT se (Peter Zander) To: djgpp AT delorie DOT com Subject: Re: BUG: Long filenames and ypath Date: Mon, 10 May 1999 07:32:20 GMT Message-ID: <37368684.496677234@mail.ntc.nokia.com> References: In-Reply-To: X-Mailer: Forte Free Agent 1.11/32.235 Reply-To: djgpp AT delorie DOT com On Sun, 9 May 1999 12:03:52 +0300 (IDT), in comp.os.msdos.djgpp you wrote: >> the ..\src directory will never be searched (in the directory search, >> verified with the make "-d" switch) by make, and the rule fail. > >I cannot reproduce this problem: the above makefile works for me >(after I change `ypath' to `vpath') with Make 3.77. > >Are you running this on Windows 9X? If so, make sure you set LFN=y in >the environment. > >If setting LFN doesn't help, please post what the DOS command DIR >prints in the ..\src directory. Thank you for answering. The LFN setting does not make it work. Now I got it working with cygwin make 3.75 (Im using Win NT 4.0). Enironment settings FYI: ---------------------------------------- COMPUTERNAME=LNWS0002NOK ComSpec=C:\WINNT\system32\cmd.exe HOMEDRIVE=C: HOMEPATH=\users LFN=y LOGONSERVER=\\LNSRV01NOK MAKE_MODE=UNIX NUMBER_OF_PROCESSORS=1 OS=Windows_NT Os2LibPath=C:\WINNT\system32\os2\dll; PATH=c:\winnt\system32 PATHEXT=.COM;.EXE;.BAT;.CMD PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 2, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0502 PROMPT=$P$G SystemDrive=C: SystemRoot=C:\WINNT TEMP=C:\TEMP TMP=C:\TEMP USERDOMAIN=NOKLN01 USERNAME=nexus USERPROFILE=C:\WINNT\Profiles\nexus windir=C:\WINNT Build result: ------------------ R:\proj\Make>djgppmake -d -p -r -f gurka > r:\log.txt djgppm~1.exe: *** No rule to make target `dbgmodule.c', needed by `foo'. Stop. makefile ("gurka.") ------------- vpath %.c / .. .PHONY=foo foo: dbgmodule.c @echo $< log.txt ---------- # GNU Make version 3.77, by Richard Stallman and Roland McGrath. # Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 # Free Software Foundation, Inc. # This is free software; see the source for copying conditions. # There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Report bugs to . Reading makefiles... Reading makefile `gurka'... Updating makefiles.... Considering target file `gurka'. Looking for an implicit rule for `gurka'. No implicit rule found for `gurka'. Finished dependencies of target file `gurka'. No need to remake target `gurka'. Updating goal targets.... Considering target file `foo'. File `foo' does not exist. Considering target file `dbgmodule.c'. File `dbgmodule.c' does not exist. Looking for an implicit rule for `dbgmodule.c'. No implicit rule found for `dbgmodule.c'. Finished dependencies of target file `dbgmodule.c'. Must remake target `dbgmodule.c'. # Make data base, printed on Mon May 10 09:18:13 1999 # Variables # default F77 = $(FC) # default PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F # makefile .PHONY = foo # environment PROMPT = $P$G # environment LOGONSERVER = \\LNSRV01NOK # automatic @F = $(notdir $@) # environment COMSPEC = C:\WINNT\SYSTEM32\COMMAND.COM # environment USERNAME = nexus # default MAKE = $(MAKE_COMMAND) # default SUFFIXES := # default COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c # default LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) # environment NUMBER_OF_PROCESSORS = 1 # environment OS = Windows_NT # default LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH) # environment HOMEPATH = \users # default LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH) # default TEXI2DVI = texi2dvi # default CURDIR := r:/proj/make # automatic +F = $(notdir $+) # default COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c # automatic %F = $(notdir $%) # environment TMP = C:\TEMP # default LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) # default CO = co # automatic ?D = $(patsubst %/,%,$(dir $?)) # default PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F # automatic dir ..\*.c Volume in drive R has no label. Volume Serial Number is 7447-1362 Directory of R:\proj 07.05.99 08:42 10 dbgmodule.c 1 File(s) 10 bytes Regards Peter Zander