Mail Archives: djgpp/1998/03/31/15:50:20
From: | "Derek Battams" <dbattams AT julian DOT uwo DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Problem With MAKEFILE; Need Help
|
Date: | Tue, 31 Mar 1998 15:17:01 -0500
|
Organization: | iSTAR internet Incorporated
|
Lines: | 130
|
Message-ID: | <6frio3$n7m$1@nr1.toronto.istar.net>
|
NNTP-Posting-Host: | snel.execulink.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Below is a MAKEFILE that will not link at the end. Everything works fine
except that when it gets to the final command I get an error. The MAKEFILE
is below (the command that gives me problems is marked with **).
Everything works fine except for the line that attempts to create the test
program executable (the line marked with **). When that command is run I
get the following message from MAKE:
Fatal: Command arguments too long
I am using MAKE version 3.76.1 and DJGPP (of course) to compile my C source
code.
Help is appreciated,
Derek Battams
London, Ontario, Canada
# MAKEFILE begins
GCC = gcc -ansi -pedantic-errors
IncDir = ../Include
LeagDir = ../League
LeagFileDir = ../LeagFile
LeagListDir = ../LeagList
TeamDir = ../Team
BowlDir = ../Bowler
TFDir = ../TeamFile
BFDir = ../BowlFile
UtilDir = ../Utils
DepFiles = LM_Impl.c\
$(IncDir)/LM_Intf.h\
$(LeagDir)/LeagImpl.c\
$(IncDir)/LeagIntf.h\
$(IncDir)/LeagType.h\
$(LeagFileDir)/LF_Impl.c\
$(IncDir)/LF_Intf.h\
$(LeagListDir)/LL_Impl.c\
$(IncDir)/LL_Intf.h\
$(IncDir)/LL_Type.h\
$(TFDir)/TF_Impl.c\
$(IncDir)/TF_Intf.h\
$(IncDir)/TF_Type.h\
$(BFDir)/BF_Impl.c\
$(IncDir)/BF_Intf.h\
$(IncDir)/BF_Type.h\
$(TeamDir)/TeamImpl.c\
$(IncDir)/TeamIntf.h\
$(IncDir)/TeamType.h\
$(BowlDir)/BowlImpl.c\
$(IncDir)/BowlIntf.h\
$(IncDir)/BowlType.h\
$(IncDir)/GenConst.h\
$(IncDir)/SystDefn.h
Depend.o = LM_Impl.o $(LeagListDir)/LL_Impl.o $(LeagFileDir)/LF_Impl.o\
$(LeagDir)/LeagImpl.o $(TFDir)/TF_Impl.o $(BFDir)/BF_Impl.o\
$(BowlDir)/BowlImpl.o $(TeamDir)/TeamImpl.o $(UtilDir)/UtilImpl.o
export: LM_Impl.o
LM_Impl.o: $(DepFiles)
$(GCC) -I$(IncDir) -c LM_Impl.c
clean:
del *.o
del *.exe
cd ..\LeagList
make clean
cd ..\BowlFile
make clean
cd ..\TeamFile
make clean
cd ..\Utils
make clean
cd ..\LeagMan
LM_Test.o: $(DepFiles) LM_Test.c
$(GCC) -I$(IncDir) -c LM_Test.c
LM_Test: LM_Impl.o LM_Test.o League LeagFile LeagList TeamFile BowlFile
Team\
Bowler Utils
$(GCC) -o lm_test.exe LM_Test.o $(Depend.o) ** THIS IS THE LINE THAT
GIVES ME ERRORS **
League:
cd ..\League
make export
cd ..\LeagMan
LeagFile:
cd ..\LeagFile
make export
cd ..\LeagMan
LeagList:
cd ..\LeagList
make export
cd ..\LeagMan
TeamFile:
cd ..\TeamFile
make export
cd ..\LeagMan
BowlFile:
cd ..\BowlFile
make export
cd ..\LeagMan
Team:
cd ..\Team
make export
cd ..\LeagMan
Bowler:
cd ..\Bowler
make export
cd ..\LeagMan
Utils:
cd ..\Utils
make export
cd ..\LeagMan
- Raw text -