[NEWBIE] Makefile problems

From: Phillip A Ames (kirk47@juno.com)
Date: 02/25/99


OK, I'm getting pissed :)  I've tried and tried and tried to get this to
work, but it just won't! *cries*  I'm using automatic dependencies from
George Greer's snippet page.  Anyone know what could be wrong?

Below is my telnet log:
[startrek@oberon startrek]$ cd circle
[startrek@oberon circle]$ cd src
[startrek@oberon src]$ make all
Makefile:28: *** commands commence before first target.  Stop.

And here's the makefile:

# Generated automatically from Makefile.in by configure.
# CircleMUD 3.0 Makefile.in - Makefile template used by 'configure'
#

# C compiler to use
CC = gcc

# Path to cxref utility
CXREF = cxref

# Any special flags you want to pass to the compiler
MYFLAGS = -Wall

#flags for profiling (see hacker.doc for more information)
PROFILE =

#########################################################################
#####
# Do Not Modify Anything Below This Line (unless you know what you're
doing) #
#########################################################################
#####

BINDIR = ../bin

CFLAGS = -g -O2 $(MYFLAGS) $(PROFILE)

LIBS =  -lcrypt

OBJFILES = act.comm.o act.informative.o act.item.o act.movement.o \
        act.offensive.o act.other.o act.social.o act.wizard.o \
          <--- Line 28
        auction.o ban.o boards.o castle.o clan.o class.o \
        color.o comm.o config.o constants.o db.o dg_comm.o \
        dg_db_scripts.o dg_event.o dg_handler.o dg_mobcmd.o \
        dg_objcmd.o dg_olc.o dg_scripts.o dg_triggers.o \
        dg_wldcmd.o events.o fight.o graph.o handler.o \
        hedit.o house.o interpreter.o limits.o magic.o \
        mail.o medit.o mobact.o modify.o objsave.o oedit.o \
        olc.o osearch.o prompt.o queue.o races.o random.o \
        redit.o sedit.o shop.o sound.o spec_assign.o \
        spec_procs.o spell_parser.o spells.o starship.o utils.o \
        vehicles.o weather.o world.o zedit.o

CXREF_FILES = act.comm.o act.informative.o act.item.o act.movement.o \
        act.offensive.o act.other.o act.social.o act.wizard.o \
        auction.o ban.o boards.o castle.o clan.o class.o \
        color.o comm.o config.o constants.o db.o dg_comm.o \
        dg_db_scripts.o dg_event.o dg_handler.o dg_mobcmd.o \
        dg_objcmd.o dg_olc.o dg_scripts.o dg_triggers.o \
        dg_wldcmd.o events.o fight.o graph.o handler.o \
        hedit.o house.o interpreter.o limits.o magic.o \
        mail.o medit.o mobact.o modify.o objsave.o oedit.o \
        olc.o osearch.o prompt.o queue.o races.o random.o \
        redit.o sedit.o shop.o sound.o spec_assign.o \
        spec_procs.o spell_parser.o spells.o starship.o utils.o \
        vehicles.o weather.o world.o zedit.o

default: all

all: .accepted
        $(MAKE) $(BINDIR)/circle
        $(MAKE) utils

.accepted:
        @./licheck less

utils: .accepted
        (cd util; $(MAKE) all)
circle:
        $(MAKE) $(BINDIR)/circle

$(BINDIR)/circle : $(OBJFILES)
        $(CC) -o $(BINDIR)/circle $(PROFILE) $(OBJFILES) $(LIBS)

clean:
        rm -f *.o

# recreate the dependency file 'Depend'
depend:
        $(CC) -MM *.c > Depend

# default rule to make all of the .c files
%.o: %.c
        @echo $<
        @$(CC) -c $(CFLAGS) $<


ref:
#
# Create the cross reference files
# Note, this is not meant to be used unless you've installed cxref...
#
        @for file in $(CXREF_FILES) ; do \
          echo Cross referencing $$file ; \
          $(CXREF) -D__CXREF__ -xref -Odoc -Ncircle $$file ; \
        done
#
# Create the source files using cxref
#
        @for file in $(CXREF_FILES) ; do \
           echo Documenting $$file ; \
           ( cd . ; $(CXREF) -D__CXREF__ -warn-xref -xref -Odoc -Ncircle -html
$$file ) ; \
           rm -f $(DOCS) ; \
        done
#
# Create the index using cxref
#
        @echo Indexing
        @( cd . ; $(CXREF) -D__CXREF__ -index-all -Odoc -Ncircle -html )
        @rm -f $(DOCS)
#
# Make html files for the .h files
#
        @echo Creating .h.html files...
        @for file in *.h ; do \
          echo $$file ; \
          cat /users/gowron/public_html/mud/ $$file
/users/gowron/public_html/mud/ >
/users/gowron/public_html/mud/$$file.html ; \
        done
# Copy over to the html directory
        cp doc/*.html /home/jelson/public_html/circle/cdp/cxref
        chmod 644 /home/jelson/public_html/circle/cdp/cxref/*.html

# Dependencies for the object files (automagically generated with
# gcc -MM)

include Depend



Phillip Ames    | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST