Makefile.bor
coolmud/Makefile.bor · 2.9 KB
From the archive coolmud-2.2.1-r8.zip
Download the archive « Back to the archive contents
# # Whatever you put in for $(CC) must be able to grok ANSI C. # .AUTODEPEND BCCROOT = $(MAKEDIR)\.. CC = $(BCCROOT)\bin\bcc32 CPP = $(BCCROOT)\bin\cpp32 -A -P- -Sk LD = $(BCCROOT)\bin\ilink32 YACC = yacc WINZIP = C:\apps\Winzip\wzzip # The suffix appended to executables. # This should be set for Cygwin and Windows. EXE = .exe #EXE = # Compiler directives for debugging !ifdef DEBUG DEBUG_CFLAGS = -v -y -Od -r- DEBUG_LFLAGS = -v !else DEBUG_CFLAGS = -v- -O2 DEBUG_LFLAGS = -v- !endif INCDIRS = -I$(BCCROOT)\include # Compiler/linker directives for linking static or dynamic !ifdef STATIC STATIC_CFLAGS = LIBS = import32.lib cw32.lib ws2_32.lib !else STATIC_CFLAGS = -tWR LIBS = import32.lib cw32i.lib ws2_32.lib !endif BCC32STARTUP = c0x32.obj SYSDEFS= -DWIN32 -DWIN32_LEAN_AND_MEAN -D_NO_VCL OPTIM= $(STATIC_CFLAGS) -tWC -w-pia -w-par -w-aus -w-rch $(DEBUG_CFLAGS) -$(PROCESSOR_LEVEL) CFLAGS= $(OPTIM) $(SYSDEFS) LFLAGS = -Tpe -ap -c -Gn $(DEBUG_LFLAGS) INCS = $(INCDIRS) # source and bin directories S = src\\ B = bin\\ DBMLIB = src\ndbm.lib CFILES = $(S)perms.c $(S)error.c $(S)code.c $(S)symbol.c \ $(S)utils.c $(S)decode.c $(S)list.c $(S)map.c $(S)var.c $(S)verb.c \ $(S)method.c $(S)compile.c $(S)execute.c $(S)opcode.c $(S)opcodes1.c \ $(S)opcodes2.c $(S)opcodes3.c $(S)builtins.c $(S)servers.c \ $(S)dispatch.c $(S)message.c $(S)storage.c $(S)dbsize.c $(S)dbpack.c \ $(S)dbunpack.c $(S)hash.c $(S)string.c $(S)buf.c $(S)netio.c \ $(S)playerio.c $(S)serverio.c $(S)cache.c $(S)dbmchunk.c $(S)os.c OFILES= $(S)cool.obj $(CFILES:.c=.obj) DBPARTS = $(B)root_obj.cl $(B)sys_obj.cl $(B)located_obj.cl $(B)described_obj.cl \ $(B)thing.cl $(B)container.cl $(B)room.cl $(B)exit.cl $(B)player.cl \ $(B)builder.cl $(B)programmer.cl $(B)wizard.cl # Files in the standard distribution DISTFILES= README CHANGES CHANGELOG COPYING COPYRIGHT CREDITS INSTALL_NOTES \ Makefile Makefile.bor Makefile.vc !ifndef RELEASE RELEASE=dist !endif OUTFILES= $(B)cm$(EXE) $(B)west.db $(B)east.db all: $(OUTFILES) $(B)cm$(EXE): $(OFILES) $(DBMLIB) $(LD) $(LFLAGS) $(BCC32STARTUP) $**, $<,, $(LIBS) $(B)west.db: $(DBPARTS) $(B)west.cl $(B)cm$(EXE) $(B)west -i -f $(B)west.precompiled $(B)east.db: $(DBPARTS) $(B)east.cl $(B)cm$(EXE) $(B)east -i -f $(B)east.precompiled $(S)cool.c $(S)y.tab.h: $(S)cool.y $(YACC) -d $** -move y.tab.c $(S)cool.c -move y.tab.h $(S)y.tab.h clean: -@del $(S)*.tds $(S)*.map $(S)y.tab.h $(S)cool.c $(OUTFILES) $(OFILES) \ $(B)*.db $(B)*.dir $(B)*.pag $(B)*.log $(B)*.i 2>NUL dist : $(DISTFILES) @echo "Building distribution..." @-md coolmud @© /y $** coolmud 1>NUL @echo .svn > ex.tmp @xcopy src coolmud\src /I /E /Y /Q /EXCLUDE:ex.tmp @xcopy bin coolmud\bin /I /E /Y /Q /EXCLUDE:ex.tmp @xcopy doc coolmud\doc /I /E /Y /Q /EXCLUDE:ex.tmp @del ex.tmp @$(WINZIP) -Pr coolmud-2.2.1-$(RELEASE).zip coolmud 1>NUL 2>NUL @rd /s /q coolmud @echo "Done." .c.obj: $(CC) $(CFLAGS) $(INCS) -c -n$(@D) $<