[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Make File Syntax Error
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Make File Syntax Error

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Mercury359   (1 post)  [Biography] bio
Date Tue 15 Apr 2003 12:34 PM (UTC)
Message
the cygwin shell is as follows:

Mercury@mercury /cygdrive/c/bc/src
$ make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error makefile 36: Command syntax error
Error makefile 37: Command syntax error
*** 2 errors during make ***


lines 36 & 37 -

31 ack: $(O_FILES)
32 rm -f ack.exe
33 $(CC) $(L_FLAGS) -o ack $(O_FILES)
34
35 .c.o: ack.h
36 $(CC) -c $(C_FLAGS) -Dunix -DNOCRYPT $<
37
38 clean:
39 rm -f $(O_FILES) ack.exe ../area/core
40 make
41

(41 is the EOF)

any help would be appreciated, again... syntax error in "Makefile" when trying to compile via CygWin under Windows 2k Adv Server
[Go to top] top

Posted by Boborak   USA  (228 posts)  [Biography] bio
Date Reply #1 on Tue 15 Apr 2003 02:01 PM (UTC)
Message
Makefiles have a very picky syntax. One thing you'll want to check is the spacing before line 36. Makefiles need a TAB, not spaces from the begining of the line to the start of the command. For example:

.c.o: mud.h
$(CC) -c $(C_FLAGS) $<

Ensure that space is an actual TAB and not just 8 spaces.

Also check that there isn't a "floating" space at the end of line 36 and you have a clean line break. Finally, check to make sure you have a CC=gcc line at the top of your file.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,507 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]