Xref: news2.mv.net comp.os.msdos.djgpp:5468 From: Geir Thomassen Newsgroups: comp.os.msdos.djgpp Subject: Q: LFN in make on Win 95 Date: Thu, 27 Jun 1996 13:45:59 +0200 Organization: Jotron Electronics Lines: 86 Message-ID: <31D27477.25EB@powertech.no> NNTP-Posting-Host: gw10-4.oslo.no.powertech.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Does make.exe in mk373b.zip support long file names ?? When I compile a small c program with a long file name using the default make database (no makefile), it does not recognise the .c extension on the source file (I think !!) If I rename the file to a shorter name, it compiles just fine. I have added LFN=Y in both the environment, and in djgpp.env. I have also disabled name-mungeling with NameNumericTail=0 in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem in the registry, but no luck !! Any idea ?? Here is a console snapshot: C:\Tmp>ver Windows 95. [Version 4.00.950] C:\Tmp>make --version GNU Make version 3.73, by Richard Stallman and Roland McGrath. Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95 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. C:\Tmp>SET LFN=Y C:\Tmp>dir Directory of C:\Tmp .. 29.02.96 9:02 . ... 29.02.96 9:02 .. HELLO C 63 27.06.96 11:25 hello.c 1 file(s) 63 bytes 2 dir(s) 969 113 600 bytes free C:\Tmp>make hello gcc hello.c -o hello C:\Tmp>copy hello.c hello_with_long_name.c 1 file(s) copied C:\Tmp>dir Directory of C:\Tmp .. 29.02.96 9:02 . ... 29.02.96 9:02 .. HELLO 55 543 27.06.96 13:01 hello HELLO EXE 57 591 27.06.96 13:01 hello.exe HELLO C 63 27.06.96 11:25 hello.c HELLO_WI C 63 27.06.96 11:25 hello_with_long_name.c 4 file(s) 113 260 bytes 2 dir(s) 968 949 760 bytes free C:\Tmp>make hello_with_long_name make.exe: *** No rule to make target `hello_with_long_name'. Stop. C:\Tmp> What am I doing wrong ?? Any help is appreciated. BTW: Has someone ported /bin/[sh,bash] to DOS ?? (Yes, I know this is an ugly task, so no flames!) A limited version of sh, would simplify porting from UNIX to DOS, because many makefiles is using /bin/sh Regards, Geir. -- | Geir Thomassen, | geirt AT powertech DOT no | | R&D Engineer, electronics (MSc) | LA7HFA, qrv 2.45GHz :-) | | | | | Jotron Electronics a.s. | Phone +47 33124577 | | P.O. Box 85 | Fax +47 33126780 | | N-3280 Tjodalyng | Priv +47 33458231 | | Norway | Telex 21715 TRON N | | | | 9.81 m/s^2 - the best way to accelerate a PC ! |