Batch file works where MAKE fails!
Hello people, While this issue might be a compiler problem, I want to post it in this forum to make sure I'm not missing something important about make. Basically what I am trying to do is simple. I'm just trying to compile 1 file! I am able to get the compiler to compile this file when I use a batch file with no problem. However when I create and use a make file with a very similar set up, the process fails and my compiler claims to not be able to find an include file. I've diffed my batch file and make file and all of the compiler arguments are EXACTLY the same. I've checked all my directories and everything else that would be obvious to this problem.. such as is the file even there? HWDEF is in the app/general directory specified by my invocation of the compiler. Here is my batch file: c:\iar\ew23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj\ -RCODE -s8 -um0 -e -K -gA -r0e -IC:\IAR\EW23\h8\inc\ -IC:\ec2000se\Sita\App\general\ -IC:\ec2000se\Sita\App\support\ -IC:\ec2000se\Sita\App\graphics\ -IC:\ec2000se\Sita\App\network\ -Ic:\ec2000se\rtxc\ -Ic:\ec2000se\bootblk\flash\ aeacmd.c And my makefile: # Tools TOOLKIT_DIR = C:\IAR\EW23\h8 PROJ_DIR = C:\ec2000se\Sita TOOLS = $(TOOLKIT_DIR)\bin COMP = $(TOOLS)\icch8 ASM = $(TOOLS)\ah8 LNK = $(TOOLS)\xlink # -VPATH = general #Directories OBJDIR = .\Obj EXEDIR = .\Exe # Default Switches CFLAGS = -v3 -mh -O$(PROJ_DIR)\App\Obj \ -Ic:\ec2000se\Sita\inc \ -Ic:\ec2000se\\Sita\app\general \ -RCODE -s8 -um0 -e -K -gA -r0e \ -I$(PROJ_DIR)\app \ -I$(PROJ_DIR)\app\support -I$(PROJ_DIR)\app\graphics \ -I$(PROJ_DIR)\app\network -Ic:\ec2000se\rtxc \ -Ic:\ec2000se\bootblk\flash AFLAGS = -v3 -mh -O$(PROJ_DIR)\App\Obj\ -s+ -w+ -M -r \ -I$(TOOLKIT_DIR)\inc\\ -I$(PROJ_DIR)\APP\GENERAL\ \ -I$(PROJ_DIR)\app\graphics\ \ -I$(PROJ_DIR)\app\support\ \ -IC:\EC2000SE\RTXC\ XFLAGS = -o $(PROJ_DIR)\App\Exe\test.d37 -Fdebug-motorola -z -l \ $(PROJ_DIR)\App\List\test.map -xms \ -I$(TOOLKIT_DIR)\LIB\ \ -f $(PROJ_DIR)\App\app.xcl # Rules for making #%.r37 : %.c # $(COMP) $(CFLAGS) $ aeacmd.r37 : aeacmd.c $(COMP) $(CFLAGS) aeacmd.c clean: del $(obj)\*.r37 -- Batch file output --- C:\ec2000se\SITA\Appc:\iar\ew23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj\ -RCODE -s8 -um0 -e -K -gA -r0e -IC:\IAR\EW23\h8\inc\ -IC:\ec2000se\Sita\App\general\ -IC:\ec2000se\Sita\App\support\ -IC:\ec2000se\Sita\App\graphics\ -IC:\ec2000se\Sita\App\network\ -Ic:\ec2000se\rtxc\ -Ic:\ec2000se\bootblk\flash\ aeacmd.c IAR H8 C-Compiler V1.41D/W32 Time limited license: 24 days left Copyright 2000 IAR Systems. All rights reserved. Errors: none Warnings: none Code size: 1416 Constant size: 3 Static variable size: 32784 Make File Output C:\IAR\EW23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj -Ic:\ec2000se\Sita\inc -Ic:\ec2000se\Sita\app\general -RCODE -s8 -um0 -e -K -gA -r0e -IC:\ec2000se\Sita\app -IC:\ec2000se\Sita\app\support -IC:\ec2000se\Sita\app\graphics -IC:\ec2000se\Sita\app\network -Ic:\ec2000se\rtxc -Ic:\ec2000se\bootblk\flash aeacmd.c IAR H8 C-Compiler V1.41D/W32 Time limited license: 24 days left Copyright 2000 IAR Systems. All rights reserved. #include hwdef.h --^ aeacmd.c,4 Error[2]: Failed to open #include file 'hwdef.h' Fatal error, compilation aborted Thanks, Anon -- View this message in context: http://www.nabble.com/Batch-file-works-where-MAKE-fails%21-tf1993359.html#a5470685 Sent from the Gnu - Make - Help forum at Nabble.com. ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make
Re: Batch file works where MAKE fails!
Have you tried using forward slashes instead of backslashes (in the search paths for the -I flag that is)? -- Stefan ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make
Re: Batch file works where MAKE fails!
Jul 24, 2006 kl. 6:24 PM skrev Anoneironaut: Hello people, While this issue might be a compiler problem, I want to post it in this forum to make sure I'm not missing something important about make. Basically what I am trying to do is simple. I'm just trying to compile 1 file! I am able to get the compiler to compile this file when I use a batch file with no problem. However when I create and use a make file with a very similar set up, the process fails and my compiler claims to not be able to find an include file. I've diffed my batch file and make file and all of the compiler arguments are EXACTLY the same. I've checked all my directories and everything else that would be obvious to this problem.. such as is the file even there? HWDEF is in the app/general directory specified by my invocation of the compiler. Here is my batch file: c:\iar\ew23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj\ -RCODE -s8 -um0 -e -K -gA -r0e -IC:\IAR\EW23\h8\inc\ -IC:\ec2000se\Sita\App\general\ -IC:\ec2000se\Sita\App\support\ -IC:\ec2000se\Sita\App\graphics\ -IC:\ec2000se\Sita\App\network\ -Ic:\ec2000se\rtxc\ -Ic:\ec2000se\bootblk\flash\ aeacmd.c And my makefile: # Tools TOOLKIT_DIR = C:\IAR\EW23\h8 PROJ_DIR = C:\ec2000se\Sita TOOLS = $(TOOLKIT_DIR)\bin COMP = $(TOOLS)\icch8 ASM = $(TOOLS)\ah8 LNK = $(TOOLS)\xlink # -VPATH = general #Directories OBJDIR = .\Obj EXEDIR = .\Exe # Default Switches CFLAGS = -v3 -mh -O$(PROJ_DIR)\App\Obj \ -Ic:\ec2000se\Sita\inc \ -Ic:\ec2000se\\Sita\app\general \ -RCODE -s8 -um0 -e -K -gA -r0e \ -I$(PROJ_DIR)\app \ -I$(PROJ_DIR)\app\support -I$(PROJ_DIR)\app\graphics \ -I$(PROJ_DIR)\app\network -Ic:\ec2000se\rtxc \ -Ic:\ec2000se\bootblk\flash AFLAGS = -v3 -mh -O$(PROJ_DIR)\App\Obj\ -s+ -w+ -M -r \ -I$(TOOLKIT_DIR)\inc\\ -I$(PROJ_DIR)\APP\GENERAL\ \ -I$(PROJ_DIR)\app\graphics\ \ -I$(PROJ_DIR)\app\support\ \ -IC:\EC2000SE\RTXC\ XFLAGS = -o $(PROJ_DIR)\App\Exe\test.d37 -Fdebug-motorola -z -l \ $(PROJ_DIR)\App\List\test.map -xms \ -I$(TOOLKIT_DIR)\LIB\ \ -f $(PROJ_DIR)\App\app.xcl # Rules for making #%.r37 : %.c # $(COMP) $(CFLAGS) $ aeacmd.r37 : aeacmd.c $(COMP) $(CFLAGS) aeacmd.c clean: del $(obj)\*.r37 -- Batch file output --- C:\ec2000se\SITA\Appc:\iar\ew23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj\ -RCODE -s8 -um0 -e -K -gA -r0e -IC:\IAR\EW23\h8\inc\ -IC:\ec2000se\Sita\App\general\ -IC:\ec2000se\Sita\App\support\ -IC:\ec2000se\Sita\App\graphics\ -IC:\ec2000se\Sita\App\network\ -Ic:\ec2000se\rtxc\ -Ic:\ec2000se\bootblk\flash\ aeacmd.c IAR H8 C-Compiler V1.41D/W32 Time limited license: 24 days left Copyright 2000 IAR Systems. All rights reserved. Errors: none Warnings: none Code size: 1416 Constant size: 3 Static variable size: 32784 Make File Output C:\IAR\EW23\h8\bin\icch8 -v3 -mh -OC:\ec2000se\Sita\App\Obj -Ic:\ec2000se\Sita\inc -Ic:\ec2000se\Sita\app\general -RCODE -s8 - um0 -e -K -gA -r0e -IC:\ec2000se\Sita\app -IC:\ec2000se\Sita\app\support -IC:\ec2000se\Sita\app\graphics -IC:\ec2000se\Sita\app\network -Ic:\ec2000se\rtxc -Ic:\ec2000se\bootblk\flash aeacmd.c IAR H8 C-Compiler V1.41D/W32 Time limited license: 24 days left Copyright 2000 IAR Systems. All rights reserved. #include hwdef.h --^ aeacmd.c,4 Error[2]: Failed to open #include file 'hwdef.h' Fatal error, compilation aborted Thanks, Anon -- View this message in context: http://www.nabble.com/Batch-file- works-where-MAKE-fails%21-tf1993359.html#a5470685 Sent from the Gnu - Make - Help forum at Nabble.com. ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make You need to escape the back slashes in Path names with backslashes, or else try using forward slashes instead, which many Win dev tools supports for compatibility. - This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren [EMAIL PROTECTED] ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make
Re: Batch file works where MAKE fails!
Forward slashes did the trick. I was under the impression that forward slashes were a no go in windows! Thanks for the help guys! -Anon -- View this message in context: http://www.nabble.com/Batch-file-works-where-MAKE-fails%21-tf1993359.html#a5477470 Sent from the Gnu - Make - Help forum at Nabble.com. ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make