[CODE] MSVC Makefile

From: Carlos Myers (farix@citynet.net)
Date: 01/07/02


I think I may have it.  The following should allow you to compile CircleMUD
on MSVC 4.0 and greater using NMAKE.  However, this Makefile has only been
tested on MSVC 6.0.

#
# CircleMUD 3.0 Makefile for Microsoft Visual C++, Windows 95/NT
# (manually created by Jeremy Elson, updated by Carlos Myers)
#
# First, set up the necessary environment variables by invoking
#
#    %devstudio%\vc\bin\vcvars32.bat
#
# where %devstudio% is the installation directory for MSVC / DevStudio.
# If you get "environment out of space" errors under 95/98, create a
# desktop shortcut with "c:\windows\command.com /e:4096" as the
# program command line and set the working directory to the CircleMUD
# source directory.
#

# COMPILER PARAMETERS
# Name of the C compiler
CC=cl

# Flags to pass to the compiler
CFLAGS = /nologo /W3 /O2 /I.


# LINK PARAMETERS
# Name of the linker
LINK = link

# Flags to pass to the linker
LFLAGS = /nologo /subsystem:console

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

MAKE = $(MAKE) /nologo /s

OBJFILES = act.comm.obj act.informative.obj act.item.obj act.movement.obj \
    act.offensive.obj act.other.obj act.social.obj act.wizard.obj alias.obj \
    ban.obj boards.obj castle.obj class.obj comm.obj config.obj constants.obj \
    db.obj fight.obj graph.obj handler.obj house.obj interpreter.obj \
    limits.obj magic.obj mail.obj mobact.obj modify.obj objsave.obj olc.obj \
    random.obj shop.obj spec_assign.obj spec_procs.obj spell_parser.obj \
    spells.obj utils.obj weather.obj

default:
    $(MAKE) $(BINDIR)\circle.exe

circle.exe:
    $(MAKE) $(BINDIR)\circle.exe

$(BINDIR)/circle.exe: $(OBJFILES) conf.h
    $(LINK) /out:$(BINDIR)\circle.exe $(LFLAGS) $(OBJFILES) wsock32.lib

conf.h:
    copy conf.h.win conf.h

clean:
    del *.obj

# Dependencies for the object files (automagically generated with
# gcc -MM)
# (Is there a cleaner way of doing this in MSVC? -CM)

act.comm.obj: act.comm.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h screen.h
    $(CC) /c $(CFLAGS) act.comm.c
act.informative.obj: act.informative.c conf.h sysdep.h structs.h utils.h \
  comm.h interpreter.h handler.h db.h spells.h screen.h constants.h
    $(CC) /c $(CFLAGS) act.informative.c
act.item.obj: act.item.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h constants.h
    $(CC) /c $(CFLAGS) act.item.c
act.movement.obj: act.movement.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h house.h constants.h
    $(CC) /c $(CFLAGS) act.movement.c
act.offensive.obj: act.offensive.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h
    $(CC) /c $(CFLAGS) act.offensive.c
act.other.obj: act.other.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h screen.h house.h constants.h
    $(CC) /c $(CFLAGS) act.other.c
act.social.obj: act.social.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h
    $(CC) /c $(CFLAGS) act.social.c
act.wizard.obj: act.wizard.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h house.h screen.h constants.h
    $(CC) /c $(CFLAGS) act.wizard.c
alias.obj: alias.c conf.h sysdep.h structs.h utils.h interpreter.h db.h
    $(CC) /c $(CFLAGS) alias.c
ban.obj: ban.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
  handler.h db.h
    $(CC) /c $(CFLAGS) ban.c
boards.obj: boards.c conf.h sysdep.h structs.h utils.h comm.h db.h boards.h \
  interpreter.h handler.h
    $(CC) /c $(CFLAGS) boards.c
castle.obj: castle.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
  handler.h db.h spells.h
    $(CC) /c $(CFLAGS) castle.c
class.obj: class.c conf.h sysdep.h structs.h db.h utils.h spells.h \
  interpreter.h constants.h
    $(CC) /c $(CFLAGS) class.c
comm.obj: comm.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
  handler.h db.h house.h
    $(CC) /c $(CFLAGS) comm.c
config.obj: config.c conf.h sysdep.h structs.h interpreter.h
    $(CC) /c $(CFLAGS) config.c
constants.obj: constants.c conf.h sysdep.h structs.h interpreter.h
    $(CC) /c $(CFLAGS) constants.c
db.obj: db.c conf.h sysdep.h structs.h utils.h db.h comm.h handler.h spells.h \
  mail.h interpreter.h house.h constants.h
    $(CC) /c $(CFLAGS) db.c
fight.obj: fight.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
  interpreter.h db.h spells.h screen.h constants.h
    $(CC) /c $(CFLAGS) fight.c
graph.obj: graph.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
  handler.h db.h spells.h
    $(CC) /c $(CFLAGS) graph.c
handler.obj: handler.c conf.h sysdep.h structs.h utils.h comm.h db.h handler.h \
  interpreter.h spells.h
    $(CC) /c $(CFLAGS) handler.c
house.obj: house.c conf.h sysdep.h structs.h comm.h handler.h db.h \
  interpreter.h utils.h house.h constants.h
    $(CC) /c $(CFLAGS) house.c
interpreter.obj: interpreter.c conf.h sysdep.h structs.h comm.h interpreter.h \
  db.h utils.h spells.h handler.h mail.h screen.h
    $(CC) /c $(CFLAGS) interpreter.c
limits.obj: limits.c conf.h sysdep.h structs.h utils.h spells.h comm.h db.h \
  handler.h
    $(CC) /c $(CFLAGS) limits.c
magic.obj: magic.c conf.h sysdep.h structs.h utils.h comm.h spells.h handler.h \
  db.h constants.h
 $(CC) /c $(CFLAGS) magic.c
mail.obj: mail.c conf.h sysdep.h structs.h utils.h comm.h db.h interpreter.h \
  handler.h mail.h
    $(CC) /c $(CFLAGS) mail.c
mobact.obj: mobact.c conf.h sysdep.h structs.h utils.h db.h comm.h \
  interpreter.h handler.h spells.h constants.h
    $(CC) /c $(CFLAGS) mobact.c
modify.obj: modify.c conf.h sysdep.h structs.h utils.h interpreter.h handler.h \
  db.h comm.h spells.h mail.h boards.h
    $(CC) /c $(CFLAGS) modify.c
objsave.obj: objsave.c conf.h sysdep.h structs.h comm.h handler.h db.h \
  interpreter.h utils.h spells.h
    $(CC) /c $(CFLAGS) objsave.c
olc.obj: olc.c conf.h sysdep.h structs.h utils.h comm.h interpreter.h \
  handler.h db.h olc.h
    $(CC) /c $(CFLAGS) olc.c
random.obj: random.c utils.h
    $(CC) /c $(CFLAGS) random.c
shop.obj: shop.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h \
  utils.h shop.h constants.h
    $(CC) /c $(CFLAGS) shop.c
spec_assign.obj: spec_assign.c conf.h sysdep.h structs.h db.h interpreter.h \
  utils.h
    $(CC) /c $(CFLAGS) spec_assign.c
spec_procs.obj: spec_procs.c conf.h sysdep.h structs.h utils.h comm.h \
  interpreter.h handler.h db.h spells.h constants.h
    $(CC) /c $(CFLAGS) spec_procs.c
spell_parser.obj: spell_parser.c conf.h sysdep.h structs.h utils.h \
  interpreter.h spells.h handler.h comm.h db.h
    $(CC) /c $(CFLAGS) spell_parser.c
spells.obj: spells.c conf.h sysdep.h structs.h utils.h comm.h spells.h \
  handler.h db.h constants.h interpreter.h
    $(CC) /c $(CFLAGS) spells.c
utils.obj: utils.c conf.h sysdep.h structs.h utils.h comm.h screen.h spells.h \
  handler.h db.h interpreter.h
    $(CC) /c $(CFLAGS) utils.c
weather.obj: weather.c conf.h sysdep.h structs.h utils.h comm.h handler.h \
  interpreter.h db.h
    $(CC) /c $(CFLAGS) weather.c

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT