Mail Archives: djgpp/2004/08/21/02:31:54
On Fri, 20 Aug 2004 20:05:36 +0100 in comp.os.msdos.djgpp, "cosmos"
<cosmos AT tvtel DOT pt> wrote:
>> On Fri, 20 Aug 2004 18:11:38 +0100 in comp.os.msdos.djgpp, "cosmos"
>> <cosmos AT tvtel DOT pt> wrote:
>>
>> >Hi there,
>> >
>> >I've installed DJGPP as the instructions in the website show. Meanwhile I
>tryed to make a cross compiler ( actually it was a friend of mine ) - with
>the host as win32 and the target unix. Now, I made a clean installation in
>order to have it run in dos/win32 mode (both host and target ) but when I
>run the make command I get always the message that the target is not
>specified and that the C file doesn't exists ( makefile.dos and asc2eph.c ).
>My computer is running in Windows XP.
>> >
>> >What can be the problem?
>>
>> Post your make command line and the contents of the makefile.
>My computer is running windows xp, and having a makefile.dos ( terminating
>in dos ) never was a problem in previous compilations - I'm not running
>linux here. The makefile.dos is as follows:
I'm assuming pasting the file contents, or your newsreader, is double
spacing the lines below; if not, you should delete any blank lines
between a rule and all subsequent commands.
...
># Now the actual rules
>
>all: $(TARGETS)
>
>clean:
>
>-rm *.o
>
>-rm *.log
>
>-rm *.exe
>
>
>
>asc2eph: asc2eph.o astrocon.o support.o
>
>$(CC) $(CFLAGS) -o asc2eph.exe asc2eph.o astrocon.o support.o $(LIBS)
...
>asc2eph.o: asc2eph.c astrolib.h support.h
>
>$(CC) $(CFLAGS) -c asc2eph.c
...
Unless it's also a problem with pasting or your newsreader, the
command lines following each rule should be indented by a tab
character, as shown below.
...
# Now the actual rules
all: $(TARGETS)
clean:
-rm -f *.o *.log *.exe $(TARGETS) # DJGPP temporaries
asc2eph: asc2eph.o astrocon.o support.o
$(CC) $(CFLAGS) -o asc2eph.exe asc2eph.o astrocon.o support.o
$(LIBS)
...
asc2eph.o: asc2eph.c astrolib.h support.h
$(CC) $(CFLAGS) -c asc2eph.c
...
See if indenting all the command lines helps.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
fake address use address above to reply
- Raw text -