diff --git a/bren/makefile b/bren/makefile deleted file mode 100644 index 59f16b9..0000000 --- a/bren/makefile +++ /dev/null @@ -1,99 +0,0 @@ -#---bren.mak - -!IFNDEF MAKEFILE_BREN -MAKEFILE_BREN = 1 - -!INCLUDE $(KAUAI_ROOT)\makefile.def - - - -#BREN SOURCE DIRECTORIES -BREN_SRC_DIR = $(SOC_ROOT)\bren - -#BREN OBJ DIRECTORIES -BREN_OBJ_ROOT_DIR = $(BREN_SRC_DIR)\obj -BREN_OBJ_DIR = $(BREN_OBJ_ROOT_DIR)\$(BLD_TYPE_DIR) -SOC_OBJ_DIR = $(SOC_ROOT)\obj\$(BLD_TYPE_DIR) - -!IF "$(LOCAL_BUILD)" == "1" -BREN_TGT_DIR = -!ELSE # LOCAL_BUILD -BREN_TGT_DIR = $(BREN_OBJ_DIR)^\ -!ENDIF # !LOCAL_BUILD - -BREN_TARGETS =\ - $(BREN_TGT_DIR)bwld.obj\ - $(BREN_TGT_DIR)stderr.obj\ - $(BREN_TGT_DIR)stdfile.obj\ - $(BREN_TGT_DIR)stdmem.obj\ - $(BREN_TGT_DIR)tmap.obj\ - $(BREN_TGT_DIR)zbmp.obj - - - -#-Compile rules------------------------------------------------------------- - - -PROGRAM_DATABASE = $(BREN_TGT_DIR)soc.pdb -PRECOMPILED_HEADER = $(BREN_TGT_DIR)soc.pch - -CPPEXTRA = /Zi /Fd$(PROGRAM_DATABASE) /Fp$(PRECOMPILED_HEADER) - -SRC_DIR=$(BREN_SRC_DIR) -OBJ_DIR=$(BREN_OBJ_DIR) -TGT_NAME=Brender - -!INCLUDE $(SOC_ROOT)\makefile.rul - - - -#-Targets------------------------------------------------------------------- - -ALL_BREN = $(BREN_TGT_DIR)bren.lib $(SOC_ROOT)\elib\$(BLD_TYPE_DIR)\bren.lib -ALL_TARGETS_ROOT = $(ALL_TARGETS_ROOT) $(ALL_BREN) - -CLEAN_BREN = CLEAN_BREN_OBJ -CLEAN_TARGETS_ROOT = $(CLEAN_TARGETS_ROOT) $(CLEAN_BREN) - - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" -ALL: $(BREN_OBJ_DIR) $(ALL_BREN) -CLEAN: $(CLEAN_BREN) ALL -!ENDIF # LOCAL_BUILD != 0 - -$(BREN_OBJ_DIR) : - @echo Making Directories $(BREN_OBJ_DIR)... - if not exist $(BREN_OBJ_ROOT_DIR)/nul mkdir $(BREN_OBJ_ROOT_DIR) - if not exist $(BREN_OBJ_DIR)/nul mkdir $(BREN_OBJ_DIR) - -!ENDIF # !LOCAL_BUILD - - -CLEAN_BREN_OBJ: - @echo <nul^ -DEL /q dummy.nul ) 2>nul -<nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.pch 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.pdb 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.exe 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.res 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.cod 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.map 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.lib 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.i 2>nul - DEL /q $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.lnk 2>nul - - -CLEAN_KAUAI_SRC: - cd $(KAUAI_ROOT)\src - @echo Making Kauai\src Clean... - nmake /NOLOGO clean - cd $(KAUAI_ROOT) - - -CLEAN_KAUAI_TOOLS: - cd $(KAUAI_ROOT)\tools - @echo Making Kauai\tools Clean... - nmake /NOLOGO clean - cd $(KAUAI_ROOT) - - - - - - - - \ No newline at end of file diff --git a/kauai/makefile.def b/kauai/makefile.def deleted file mode 100644 index a2b7c79..0000000 --- a/kauai/makefile.def +++ /dev/null @@ -1,555 +0,0 @@ -#--- makefile.def -- included in Kids Build makefiles - -!IFNDEF MAKEFILE_DEF -MAKEFILE_DEF = 1 - -#- Map some variables ---------------------------------------------------------- - -!IF "$(TYPE)" == "DAY" -TYPE=DEBUG -INCREMENTAL=1 -!ELSEIF "$(TYPE)" == "HOME" -TYPE=DEBUG -INCREMENTAL= -!ELSEIF "$(TYPE)" == "DBSHIP" -TYPE=SHIP -DEBUG_LINK=1 -!ELSEIF "$(LOCAL_BUILD)" != "1" -DEBUG_LINK=1 -!ENDIF - -#-Tools------------------------------------------------------------------------- - -CPP=cl /nologo -!IF "$(ARCH)" == "MAC" -ASM=asm68 -!ENDIF -LINK=link -MRC=mrc -RC=rc -CHOMP=$(KAUAI_ROOT)\obj\wins\chomp.exe -CHELPDMP=$(KAUAI_ROOT)\obj\wins\chelpdmp.exe - -!IF "$(ARCH)" == "MAC" -.SUFFIXES : .rsc .rm .asm -!ELSE -.SUFFIXES: .cht .chk .scr -!ENDIF - -#-CPPFLAGS---------------------------------------------------------------------- - -# /YX is "automate precompiled headers" -# /Fp renames the pch file from the default "msvc.pch" -# /W3 provides warning level 3 -# /Gz uses "stdcall", the default 32-bit VC++ calling convention. -DEFS = /D"$(ARCH)" /D"STRICT" -!IF "$(CHIP)" != "" -DEFS = $(DEFS) /D"$(CHIP)" -!ENDIF -!IF "$(UNICODE)" != "" -DEFS = $(DEFS) /D"UNICODE" -!ENDIF - -#CPPFLAGS = /c /YX /Fp"frame.pch" /W3 /Gz -#PLACED PRECOMPILED HEADERS IN PROJ MAKEFILES -CPPFLAGS = /c /YX /W3 /Gz /Gy - -ASMFLAGS = -c -!IF "$(BROWSE)" != "" -CPPFLAGS = /Fr $(CPPFLAGS) -!ENDIF - -!IF "$(ARCH)" == "WIN" -DEFS = $(DEFS) /D"WIN32" -!ENDIF - -!IF "$(TYPE)" == "DEBUG" -# /Zi generates debugging info and puts it in the .pdb file -# /Fd renames the pdb file from the default "msvc.pdb" -# /Og enables global optimization -# /Ob1 enables inline expansion -DEFS = $(DEFS) /D"DEBUG" -!IF "$(ARCH)" == "MAC" -CPPFLAGS = /Q68m $(CPPFLAGS) -ASMFLAGS = $(ASMFLAGS) -s -!ENDIF -CPPFLAGS = /Gf /Ge $(CPPFLAGS) -!ELSE -#CPPFLAGS = /Ogityb1 /Gs /Gf $(CPPFLAGS) REVIEW shonk: revert to this -CPPFLAGS = /Ogityb1 /Gs /Gf $(CPPFLAGS) -!ENDIF - - -#-LFLAGS--------------------------------------------------------------------------- - -# Cannot incrementally link and generate mapfile, or optimize references - -# REVIEW seanse: remove /DEBUG flag for ship build later in project -LFLAGS_BASE = /nologo -!IF "$(INCREMENTAL)"=="" -LFLAGS_CONS = $(LFLAGS_BASE) /OPT:REF /map -LFLAGS_GUI = $(LFLAGS_BASE) /OPT:REF /map -LFLAGS_LIB = $(LFLAGS_BASE) /OPT:REF -!ELSE -LFLAGS_CONS = /INCREMENTAL:YES $(LFLAGS_BASE) -LFLAGS_GUI = /INCREMENTAL:YES $(LFLAGS_BASE) -LFLAGS_LIB = $(LFLAGS_BASE) -!ENDIF - - -!IF "$(ARCH)" == "WIN" -LFLAGS_CONS = $(LFLAGS_CONS) /SUBSYSTEM:console kernel32.lib comdlg32.lib\ - user32.lib gdi32.lib winmm.lib -LFLAGS_GUI = $(LFLAGS_GUI) $(LFLAGS_PROF) /SUBSYSTEM:windows,4.0 kernel32.lib\ - comdlg32.lib user32.lib gdi32.lib winmm.lib advapi32.lib uuid.lib -!ENDIF -!IF "$(ARCH)" == "MAC" -LFLAGS_GUI = $(LFLAGS_GUI) /MACHINE:M68K -!ENDIF - - -#SHIP AND DEBUG USE /DEBUG FLAG -#!IF "$(TYPE)" == "DEBUG" -# /DEBUG incorporates debugging info (/DEBUGTYPE is cv by default) -#LFLAGS_CONS = /DEBUG $(LFLAGS_CONS) -#LFLAGS_GUI = /DEBUG $(LFLAGS_GUI) -#!ENDIF - -!IF ("$(TYPE)" == "DEBUG") || ("$(DEBUG_LINK)" == "1") -LFLAGS_CONS = /DEBUG $(LFLAGS_CONS) -LFLAGS_GUI = /DEBUG $(LFLAGS_GUI) -!ENDIF # DEBUG || DEBUG_LINK - -.cpp.exe: - -#-Build-Macros--------------------------------------------------------------------- - - -!IF "$(ARCH)" == "WIN" - -!IF "$(TYPE)" == "DEBUG" - -!IF "$(UNICODE)"=="" -BLD_TYPE_DIR = wind -!ELSE -BLD_TYPE_DIR = winud -!ENDIF - -!ELSE IF "$(TYPE)" == "SHIP" - -!IF "$(UNICODE)"=="" -BLD_TYPE_DIR = wins -!ELSE -BLD_TYPE_DIR = winus -!ENDIF - -!ENDIF - -!ELSE IF "$(ARCH)" == "MAC" - -!IF "$(TYPE)" == "DEBUG" -BLD_TYPE_DIR = macd -!ELSE IF "$(TYPE)" == "SHIP" -BLD_TYPE_DIR = macs -!ENDIF - -!ENDIF - - - -#AUDIO LIB -!IF "$(ARCH)" == "WIN" -!IF "$(TYPE)" == "DEBUG" -AUDIO_LIB = $(KAUAI_ROOT)\elib\$(BLD_TYPE_DIR)\audiod.lib -!ELSE IF "$(TYPE)" == "SHIP" -AUDIO_LIB = $(KAUAI_ROOT)\elib\$(BLD_TYPE_DIR)\audios.lib -!ENDIF -!ENDIF - - -#VIDEO FOR WINDOWS LIB -VFW32_LIB = $(MSVCNT_ROOT)\lib\vfw32.lib - -#Windows WNet LIB -WNET_LIB = $(MSVCNT_ROOT)\lib\mpr.lib - -#KAUAI OBJ DIRECTORIES -KAUAI_OBJ_ROOT_DIR = $(KAUAI_ROOT)\obj -KAUAI_OBJ_DIR = $(KAUAI_OBJ_ROOT_DIR)\$(BLD_TYPE_DIR) - - -#==================================================================== -#KAUIA OBJ GROUPS - - - -#BASE_OBJS -#Base: Base files required for all Kauai based projects -#Requires: nothing - -!IF "$(ARCH)" == "WIN" - -BASE_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\memwin.obj - -!ELSE IF "$(ARCH)" == "MAC" - -BASE_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\memmac.obj - -!IF "$(CHIP)" == "MC_68020" - -BASE_CHIP_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\utilmc.obj - -!ENDIF - -!ENDIF - - -BASE_OBJS =\ - $(KAUAI_OBJ_DIR)\utilglob.obj\ - $(KAUAI_OBJ_DIR)\util.obj\ - $(KAUAI_OBJ_DIR)\base.obj\ - $(KAUAI_OBJ_DIR)\utilcopy.obj\ - $(KAUAI_OBJ_DIR)\utilerro.obj\ - $(KAUAI_OBJ_DIR)\utilint.obj\ - $(KAUAI_OBJ_DIR)\utilmem.obj\ - $(KAUAI_OBJ_DIR)\utilrnd.obj\ - $(KAUAI_OBJ_DIR)\utilstr.obj\ - $(BASE_PLATFORM_SPECIFIC)\ - $(BASE_CHIP_SPECIFIC) - - - -#GROUP_OBJS -#Group: Collection classes -#Requires: Base, File, and NoFile - -GROUP_OBJS =\ - $(KAUAI_OBJ_DIR)\groups.obj\ - $(KAUAI_OBJ_DIR)\groups2.obj - - - -#FILE_OBJS -#File: File and chunky file stuff -#Requires: Group - -!IF "$(ARCH)" == "WIN" - -FILE_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\filewin.obj\ - $(KAUAI_OBJ_DIR)\fniwin.obj - -!ELSE IF "$(ARCH)" == "MAC" - -FILE_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\filemac.obj\ - $(KAUAI_OBJ_DIR)\fnimac.obj - -!ENDIF - - -FILE_OBJS =\ - $(KAUAI_OBJ_DIR)\chunk.obj\ - $(KAUAI_OBJ_DIR)\codec.obj\ - $(KAUAI_OBJ_DIR)\codkauai.obj\ - $(KAUAI_OBJ_DIR)\crf.obj\ - $(KAUAI_OBJ_DIR)\file.obj\ - $(FILE_PLATFORM_SPECIFIC) - - - -#NOFILE_OBJS -#NoFile: To be implemented in the future -#Requires: Base - - - -#STREAM_OBJS -#Stream: Stream classes -#Requires: Group - -STREAM_OBJS =\ - $(KAUAI_OBJ_DIR)\stream.obj - - - -#LEXER_OBJS -#Lexer: Lexing classes -#Requires: Stream - -LEXER_OBJS =\ - $(KAUAI_OBJ_DIR)\lex.obj - - - -#SCRCOM_OBJS -#ScrCom: Script compiler -#Requires: Lexer - -SCRCOM_OBJS =\ - $(KAUAI_OBJ_DIR)\scrcom.obj - - - -#KIDCOM_OBJS -#KidCom: Script compiler for kidspace scripts -#Requires: ScrCom - -KIDCOM_OBJS =\ - $(KAUAI_OBJ_DIR)\scrcomg.obj - - - -#SCREXE_OBJS -#ScrExe: Script interpreter -#Requires: Group - -SCREXE_OBJS =\ - $(KAUAI_OBJ_DIR)\screxe.obj - - - -#MBMPIO_OBJS -#MbmpIO: Masked bitmap IO support -#Requires: File or NoFile - -MBMPIO_OBJS =\ - $(KAUAI_OBJ_DIR)\mbmp.obj - - - -#CHSE_OBJS -#Chse: Chunky source emitter -#Requires: Group - -CHSE_OBJS =\ - $(KAUAI_OBJ_DIR)\chse.obj - - - -#CHCM_OBJS -#Chcm: Chunky compiler and decompiler classes -#Requires: Lexer, Chse, MbmpIO, KidCom - -CHCM_OBJS =\ - $(KAUAI_OBJ_DIR)\chcm.obj - - - -#SOUND_OBJS -#Sound: Sound support -#Requires: Group - -SOUND_OBJS =\ - $(KAUAI_OBJ_DIR)\sndm.obj\ - $(KAUAI_OBJ_DIR)\sndam.obj\ - $(KAUAI_OBJ_DIR)\mididev.obj\ - $(KAUAI_OBJ_DIR)\mididev2.obj\ - $(KAUAI_OBJ_DIR)\midi.obj - - - -#NOSOUND_OBJS -#NoSound: Not yet implemented -#Requires: Base - - - -#VIDEO_OBJS -#Video: Video playback and support -#Requires: GUI - -VIDEO_OBJS =\ - $(KAUAI_OBJ_DIR)\video.obj - - - -#NOVIDEO_OBJS -#NoVideo: Not yet implemented -#Requires: GUI - - - -#SPELL_OBJS -#SpellChecker -#Requires: Base, Group - -SPELL_OBJS =\ - $(KAUAI_OBJ_DIR)\spell.obj - - - -#GUI_OBJS -#Gui: Support for a GUI application -#Requires: Group, MbmpIO, Sound or NoSound, Video or NoVideo - -!IF "$(ARCH)" == "WIN" - -GUI_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\appbwin.obj\ - $(KAUAI_OBJ_DIR)\gfxwin.obj\ - $(KAUAI_OBJ_DIR)\gobwin.obj\ - $(KAUAI_OBJ_DIR)\menuwin.obj\ - $(KAUAI_OBJ_DIR)\picwin.obj - -!ELSE IF "$(ARCH)" == "MAC" - -GUI_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\appbmac.obj\ - $(KAUAI_OBJ_DIR)\gfxmac.obj\ - $(KAUAI_OBJ_DIR)\gobmac.obj\ - $(KAUAI_OBJ_DIR)\menumac.obj\ - $(KAUAI_OBJ_DIR)\picmac.obj - -!ENDIF - - -GUI_OBJS =\ - $(KAUAI_OBJ_DIR)\appb.obj\ - $(KAUAI_OBJ_DIR)\clok.obj\ - $(KAUAI_OBJ_DIR)\cmd.obj\ - $(KAUAI_OBJ_DIR)\cursor.obj\ - $(KAUAI_OBJ_DIR)\gfx.obj\ - $(KAUAI_OBJ_DIR)\gob.obj\ - $(KAUAI_OBJ_DIR)\mbmpgui.obj\ - $(KAUAI_OBJ_DIR)\region.obj\ - $(KAUAI_OBJ_DIR)\pic.obj\ - $(GUI_PLATFORM_SPECIFIC) - - - -#DLG_OBJS -#Dlg: Dialog support -#Requires: Gui - -!IF "$(ARCH)" == "WIN" - -DLG_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\dlgwin.obj\ - -!ELSE IF "$(ARCH)" == "MAC" - -DLG_PLATFORM_SPECIFIC =\ - $(KAUAI_OBJ_DIR)\dlgmac.obj\ - -!ENDIF - - -DLG_OBJS =\ - $(KAUAI_OBJ_DIR)\dlg.obj\ - $(DLG_PLATFORM_SPECIFIC) - - - - -#CTL_OBJS -#Ctl: Control support -#Requires: Gui - -CTL_OBJS =\ - $(KAUAI_OBJ_DIR)\ctl.obj - - - - -#DOC_OBJS -#Doc: Base document class support -#Requires: Ctl - -DOC_OBJS =\ - $(KAUAI_OBJ_DIR)\docb.obj\ - $(KAUAI_OBJ_DIR)\clip.obj - - -#RICHTEXT_OBJS -#RichText: Rich text document support -#Requires: Doc, Stream - -RICHTEXT_OBJS =\ - $(KAUAI_OBJ_DIR)\rtxt.obj\ - $(KAUAI_OBJ_DIR)\rtxt2.obj - - - - -#TEXTEDIT_OBJS -#TextEdit: Edit controls -#Requires: Gui, Stream - -TEXTEDIT_OBJS =\ - $(KAUAI_OBJ_DIR)\text.obj - - - - -#PLAINTEXT_OBJS -#PlainText: Plain line based text document -#Requires: Doc, Stream - -PLAINTEXT_OBJS =\ - $(KAUAI_OBJ_DIR)\textdoc.obj - - - - -#KID_OBJS -#Kid: Kidspace and help balloon stuff -#Requires: Gui, ScrExe - -KID_OBJS =\ - $(KAUAI_OBJ_DIR)\kidworld.obj\ - $(KAUAI_OBJ_DIR)\kidhelp.obj\ - $(KAUAI_OBJ_DIR)\kidspace.obj\ - $(KAUAI_OBJ_DIR)\screxeg.obj - - - - -#KAUAITEST_OBJS -#KauiaTest: Kauai test app stuff -#Requires: Gui, File - -KAUAITEST_OBJS =\ - $(KAUAI_OBJ_DIR)\ft.obj\ - $(KAUAI_OBJ_DIR)\test.obj - - - - -#CHED_OBJS -#Ched: Chunky editor -#Requires: Gui, Kid, KidCom, PlainText, Doc, Chcm - -CHED_OBJS =\ - $(KAUAI_OBJ_DIR)\chdoc.obj\ - $(KAUAI_OBJ_DIR)\ched.obj\ - $(KAUAI_OBJ_DIR)\chgrp.obj\ - $(KAUAI_OBJ_DIR)\chhex.obj\ - $(KAUAI_OBJ_DIR)\chmbmp.obj\ - $(KAUAI_OBJ_DIR)\chpic.obj\ - $(KAUAI_OBJ_DIR)\chtxt.obj - - - -#CHELP_OBJS -#Chelp: Chunky help editor -#Requires: Gui, Kid, RichText - -CHELP_OBJS =\ - $(KAUAI_OBJ_DIR)\chelp.obj\ - $(KAUAI_OBJ_DIR)\chtop.obj\ - $(KAUAI_OBJ_DIR)\chelpexp.obj - - -#CHOMP_OBJS -#Chomp: Chunky compiler -#Requires: File, Group, Chcm - -CHOMP_OBJS =\ - $(KAUAI_OBJ_DIR)\chomp.obj\ - $(KAUAI_OBJ_DIR)\mssio.obj - -!ENDIF # !MAKEFILE_DEF diff --git a/kauai/makefile.kmk b/kauai/makefile.kmk deleted file mode 100644 index 428b12e..0000000 --- a/kauai/makefile.kmk +++ /dev/null @@ -1,64 +0,0 @@ -# makefile.kmk -# -# This is the makefile used by kmake.bat. It knows how to build everything -# in Kauai - -LOCAL_BUILD=1 - -# Included files should append targets as follows: -# *** Any target that should be executed for a clean should be appended -# to "CLEAN_TARGETS_ROOT" -# *** Any target that should be built by default should be appended to -# "ALL_TARGETS_ROOT". Note that there *will* be targets defined which -# should not be appended to this, because they are only interesting -# when used as dependents to something else. - -CLEAN_TARGETS_ROOT= -ALL_TARGETS_ROOT= - -############################################################################# -## Process ERRLVL ## -############################################################################# - -# CHKERR is used in any build rule that should cause the build to stop -!IF "$(ERRLVL)" == "FATAL" -CHKERR=@@if errorlevel 1 goto error -!ELSE -CHKERR=@@if errorlevel 1 (echo Removing goodmake.log & rm goodmake.log) -!ENDIF - -# CHKERRW is used in any build rule that should report an error, but should -# never cause the build to stop, even if ERRLVL == FATAL -CHKERRW=@@if errorlevel 1 (echo Removing goodmake.log & rm goodmake.log) - -.SUFFIXES: .cpp .asm .c .obj .rc .cht - -!INCLUDE $(KAUAI_ROOT)\makefile.def - -!INCLUDE $(KAUAI_ROOT)\src\makefile - -!INCLUDE $(KAUAI_ROOT)\tools\makefile - -# NOTE: unlike the other "CLEAN" targets, this does not actually do a build. -# This is intentional (BY DESIGN). -CLEAN: - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.obj 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.pch 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.pdb 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.exe 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.res 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.chk 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.cht 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.cod 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.map 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.thd 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.lib 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.lnk 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.ilk 2> nul - -del $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\*.i 2> nul - -CLEAN_BY_FILE: $(CLEAN_TARGETS_ROOT) - @echo on - - -ALL: $(ALL_TARGETS_ROOT) diff --git a/kauai/makefile.rul b/kauai/makefile.rul deleted file mode 100644 index 6fdc89c..0000000 --- a/kauai/makefile.rul +++ /dev/null @@ -1,114 +0,0 @@ -# Use this file to automatically declare rules for a group of targets. -# Set the "SRC_DIR" variable to the appropriate directory, set OBJ_DIR -# to the appropriate target directory and then include this file. - -# If the "LOCAL_BUILD" variable is defined and set to "1", this indicates that -# we're already cd'd to the target directory. This allows nmake to use a much -# simpler set of make rules. - -#-Compile rules------------------------------------------------------------- - - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" - -{$(SRC_DIR)}.cpp.obj: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.obj - -{$(SRC_DIR)}.cpp.exe: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.exe - -{$(SRC_DIR)}.asm.obj: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.obj - -{$(SRC_DIR)}.rc.res: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.res - -{$(SRC_DIR)}.cht.chk: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.chk - -{$(SRC_DIR)}.cpp.i: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.i - -{$(SRC_DIR)}.cpp.cod: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.cod - -!ENDIF # LOCAL_BUILD != 0 - - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) $(CPPFLAGS) /Zi /Fd$(KAUAI_OBJ_DIR)\kauai.pdb /Fp$(KAUAI_OBJ_DIR)\kauai.pch /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.c{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) $(CPPFLAGS) /Zi /Fd$(KAUAI_OBJ_DIR)\kauai.pdb /Fp$(KAUAI_OBJ_DIR)\kauai.pch /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.asm{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Assembly Src... $< - $(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.rc{$(OBJ_DIR)}.res: - !@echo Compiling $(TGT_NAME) Resource... $< - $(RC) $(DEFS) /Fo$*.res $< - $(CHKERR) - - -{$(SRC_DIR)}.cht{$(OBJ_DIR)}.chk: - cl /E -I%|pF $(DEFS) /Tp$< > $(OBJ_DIR)\$(@B).i - $(CHOMP) $(OBJ_DIR)\$(@B).i $*.chk - $(CHKERR) - - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.i: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) /E $(DEFS) $< > $*.i - $(CHKERR) - - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.cod: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) /FAcs $(CPPFLAGS) /Zi /Fd$(KAUAI_OBJ_DIR)\kauai.pdb /Fp$(KAUAI_OBJ_DIR)\kauai.pch $(DEFS) /Fa$*.cod $< - $(CHKERR) - - -!ELSE # !LOCAL_BUILD - - -{$(SRC_DIR)}.cpp.obj: - $(CPP) $(CPPFLAGS) /Zi /Fdkauai.pdb /Fpkauai.pch $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.c.obj: - $(CPP) $(CPPFLAGS) /Zi /Fdkauai.pdb /Fpkauai.pch $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.asm.obj: - $(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $< - -{$(SRC_DIR)}.rc.res: - $(RC) $(DEFS) /Fo$*.res $< - $(CHKERR) - -{$(SRC_DIR)}.cht.chk: - cl /P -I%|pF $(DEFS) /Tp$< - $(CHOMP) $(@B).i $*.chk - $(CHKERR) - -{$(SRC_DIR)}.cpp.i: - $(CPP) /P $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.cpp.cod: - $(CPP) /FAcs $(CPPFLAGS) /Zi /Fdkauai.pdb /Fpkauai.pch $(DEFS) /Fa%|fF.cod $< - $(CHKERR) - - -!ENDIF # LOCAL_BUILD diff --git a/kauai/src/makefile b/kauai/src/makefile deleted file mode 100644 index ecf0531..0000000 --- a/kauai/src/makefile +++ /dev/null @@ -1,222 +0,0 @@ -#---kauai.mak - -!IFNDEF MAKEFILE_KAUAI -MAKEFILE_KAUAI = 1 - -!INCLUDE $(KAUAI_ROOT)\makefile.def - - -#KAUAI SOURCE DIRECTORIES -KAUAI_SRC_DIR = $(KAUAI_ROOT)\src -KAUAI_TOOLS_DIR = $(KAUAI_ROOT)\tools - -#KAUAI OBJ DIRECTORIES -KAUAI_OBJ_ROOT_DIR = $(KAUAI_ROOT)\obj -KAUAI_OBJ_DIR = $(KAUAI_OBJ_ROOT_DIR)\$(BLD_TYPE_DIR) - -!IF "$(LOCAL_BUILD)" == "1" -TARGET_DIR = -!ELSE # LOCAL_BUILD -TARGET_DIR = $(KAUAI_OBJ_DIR)^\ -!ENDIF # !LOCAL_BUILD - - -KAUAI_TARGETS =\ - $(BASE_OBJS)\ - $(GROUP_OBJS)\ - $(FILE_OBJS)\ - $(STREAM_OBJS)\ - $(LEXER_OBJS)\ - $(SCRCOM_OBJS)\ - $(KIDCOM_OBJS)\ - $(SCREXE_OBJS)\ - $(MBMPIO_OBJS)\ - $(CHSE_OBJS)\ - $(CHCM_OBJS)\ - $(SOUND_OBJS)\ - $(VIDEO_OBJS)\ - $(GUI_OBJS)\ - $(DLG_OBJS)\ - $(CTL_OBJS)\ - $(DOC_OBJS)\ - $(RICHTEXT_OBJS)\ - $(TEXTEDIT_OBJS)\ - $(PLAINTEXT_OBJS)\ - $(KID_OBJS) - - - -UT_TARGETS =\ - $(BASE_OBJS)\ - $(GROUP_OBJS)\ - $(FILE_OBJS)\ - $(TARGET_DIR)ut.obj\ - $(TARGET_DIR)test.obj\ - - -FT_TARGETS =\ - $(BASE_OBJS)\ - $(GROUP_OBJS)\ - $(FILE_OBJS)\ - $(GUI_OBJS)\ - $(DOC_OBJS)\ - $(STREAM_OBJS)\ - $(SOUND_OBJS)\ - $(DLG_OBJS)\ - $(CTL_OBJS)\ - $(TEXTEDIT_OBJS)\ - $(RICHTEXT_OBJS)\ - $(MBMPIO_OBJS)\ - $(KAUAITEST_OBJS)\ - $(TARGET_DIR)ft.res - - - -#-Compile rules------------------------------------------------------------- - - -PROGRAM_DATABASE = $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\kauai.pdb -PRECOMPILED_HEADER = $(KAUAI_ROOT)\obj\$(BLD_TYPE_DIR)\kauai.pch - -CPPEXTRA = /Zi /Fd$(PROGRAM_DATABASE) /Fp$(PRECOMPILED_HEADER) - -SRC_DIR=$(KAUAI_SRC_DIR) -OBJ_DIR=$(KAUAI_OBJ_DIR) -TGT_NAME=Kauai - -!INCLUDE $(KAUAI_ROOT)\makefile.rul - -# REVIEW a-aarob (peted): why should Kauai src know how to build Kauai tools? -# -# SRC_DIR=$(KAUAI_TOOLS_DIR) -# OBJ_DIR=$(KAUAI_OBJ_DIR) -# TGT_NAME=Kauai Tools -# -# !INCLUDE $(KAUAI_ROOT)\makefile.rul - - - -#-Targets------------------------------------------------------------------- - -ALL_KAUAI = $(KAUAI_TARGETS) $(TARGET_DIR)FT.EXE $(TARGET_DIR)UT.EXE -ALL_TARGETS_ROOT = $(ALL_TARGETS_ROOT) $(ALL_KAUAI) - -CLEAN_KAUAI = CLEAN_KAUAI_OBJ CLEAN_UT CLEAN_FT -CLEAN_TARGETS_ROOT = $(CLEAN_TARGETS_ROOT) $(CLEAN_KAUAI) - - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" && !DEFINED(MAKEFILE_KAUAI_TOOLS) -ALL: $(KAUAI_OBJ_DIR) $(ALL_KAUAI) -CLEAN : $(CLEAN_KAUAI) ALL -!ENDIF # LOCAL_BUILD != 0 - -KAUAI_OBJS : $(KAUAI_OBJ_DIR) $(KAUAI_TARGETS) - -$(KAUAI_OBJ_DIR) : - @echo Making Directories $(KAUAI_OBJ_DIR)... - if not exist $(KAUAI_OBJ_ROOT_DIR)/nul mkdir $(KAUAI_OBJ_ROOT_DIR) - if not exist $(KAUAI_OBJ_DIR)/nul mkdir $(KAUAI_OBJ_DIR) - -!ELSE # !LOCAL_BUILD - -KAUAI_OBJS : $(KAUAI_TARGETS) - -!ENDIF # LOCAL_BUILD - - -$(KAUAI_OBJ_DIR)\codkauai.obj: $(KAUAI_SRC_DIR)\kcdc_386.h $(KAUAI_SRC_DIR)\kcd2_386.h - -$(KAUAI_SRC_DIR)\kcdc_386.h: $(TARGET_DIR)kcdc_386.exe - $(TARGET_DIR)kcdc_386.exe $(KAUAI_SRC_DIR)\kcdc_386.h - -$(TARGET_DIR)kcdc_386.exe: $(KAUAI_SRC_DIR)\kcdc_386.c - cl $(KAUAI_SRC_DIR)\kcdc_386.c /Fe$(TARGET_DIR)kcdc_386.exe /Fo$(TARGET_DIR)kcdc_386.obj - -$(KAUAI_SRC_DIR)\kcd2_386.h: $(TARGET_DIR)kcd2_386.exe - $(TARGET_DIR)kcd2_386.exe $(KAUAI_SRC_DIR)\kcd2_386.h - -$(TARGET_DIR)kcd2_386.exe: $(KAUAI_SRC_DIR)\kcd2_386.c - cl $(KAUAI_SRC_DIR)\kcd2_386.c /Fe$(TARGET_DIR)kcd2_386.exe /Fo$(TARGET_DIR)kcd2_386.obj - - -CLEAN_KAUAI_OBJ: - @echo <nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -DEL /q dummy.nul $(TARGET_DIR)ut.obj 2>nul -DEL /q dummy.nul $(TARGET_DIR)test.obj 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -DEL /q dummy.nul $(TARGET_DIR)ft.obj 2>nul -DEL /q dummy.nul $(TARGET_DIR)test.obj 2>nul -DEL /q dummy.nul $(TARGET_DIR)ft.res 2>nul -<nul - @DEL /q $(KAUAI_OBJ_DIR)\*.pch 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.pdb 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.exe 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.res 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.cod 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.map 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.lib 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.i 2>nul - @DEL /q $(KAUAI_OBJ_DIR)\*.lnk 2>nul - - -!ENDIF # LOCAL_BUILD != 0 - -RMOBJ : $(CLEAN_KAUAI_TOOLS) - -!ENDIF # !LOCAL_BUILD - - - -CLEAN_CHED: - @echo <nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul - -mkdir $(DIST_ROOT)\"Microsoft Kids" - -mkdir $(DIST_ROOT)\"Microsoft Kids"\"3D Movie Maker" - -mkdir $(DIST_ROOT)\"Microsoft Kids"\Users" - -mkdir $(DIST_ROOT)\"Microsoft Kids"\Users\Melanie" - copy /Y $(SOC_ROOT)\cd9\*.* $(DIST_ROOT)\"Microsoft Kids"\"3D Movie Maker" - copy /Y $(SOC_OBJ_DIR)\*.chk $(DIST_ROOT)\"Microsoft Kids"\"3D Movie Maker" - copy /Y $(SOC_OBJ_DIR)\3dmovie.exe $(DIST_ROOT)\ - -ZIP: DIST - cd $(DIST_ROOT) - 7z a -r 3DMMForever_$(RELEASE_VERSION).zip 3dmovie.exe "Microsoft Kids" - -CLEAN: CLEAN_REST CLEAN_BREN BUILD_REST - - -CLEAN_BREN: - cd $(SOC_ROOT)\bren - @echo Making Bren Clean... - $(MAKE) /NOLOGO clean - cd $(SOC_ROOT) - - -CLEAN_REST: - @echo Cleaning $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\ directory - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.obj 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.pch 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.pdb 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.exe 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.res 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.chk 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.cht 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.cod 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.map 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.thd 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.lib 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.i 2>nul - del /q $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.lnk 2>nul - - -BUILD_REST: - cd $(SOC_ROOT)\src - @echo Making Src Clean... - $(MAKE) /NOLOGO - cd $(SOC_ROOT)\tools - @echo Making Tools Clean... - $(MAKE) /NOLOGO - cd $(SOC_ROOT) - - \ No newline at end of file diff --git a/makefile.kmk b/makefile.kmk deleted file mode 100644 index 5ab05e7..0000000 --- a/makefile.kmk +++ /dev/null @@ -1,112 +0,0 @@ -# makefile.kmk -# -# This is the makefile used by kmake.bat. It knows how to build everything -# in Socrates. - -LOCAL_BUILD=1 - -# Included files should append targets as follows: -# *** Any target that should be executed for a clean should be appended -# to "CLEAN_TARGETS_ROOT" -# *** Any target that should be built by default should be appended to -# "ALL_TARGETS_ROOT". Note that there *will* be targets defined which -# should not be appended to this, because they are only interesting -# when used as dependents to something else. - -CLEAN_TARGETS_ROOT= -ALL_TARGETS_ROOT= - -############################################################################# -## Process ERRLVL ## -############################################################################# - -# CHKERR is used in any build rule that should cause the build to stop -!IF "$(ERRLVL)" == "FATAL" -CHKERR=@@if errorlevel 1 goto error -!ELSE -CHKERR=@@if errorlevel 1 (echo Removing goodmake.log & rm goodmake.log) -!ENDIF - -# CHKERRW is used in any build rule that should report an error, but should -# never cause the build to stop, even if ERRLVL == FATAL -CHKERRW=@@if errorlevel 1 (echo Removing goodmake.log & rm goodmake.log) - -.SUFFIXES: .cpp .asm .c .obj .rc - -# NOTE: we don't want to build all Kauai targets; we use Kauai's makefiles -# only for their dependencies. Also, we don't want Kauai sources built in -# our current directory. - -!IF "$(ALL_TARGETS_ROOT)" != "" -!ERROR Should not have any ALL targets defined yet -!ENDIF - -!IF "$(CLEAN_TARGETS_ROOT)" != "" -!ERROR Should not have any CLEAN targets defined yet -!ENDIF - -LOCAL_BUILD=0 - -# These guys always get built elsewhere - -!INCLUDE $(KAUAI_ROOT)\makefile.def - -!INCLUDE $(KAUAI_ROOT)\src\makefile - -# Bren gets built elsewhere, but should still be cleaned as part of a SOC clean -ALL_TARGETS_ROOT= -CLEAN_TARGETS_ROOT= - -!INCLUDE $(SOC_ROOT)\bren\makefile - -LOCAL_BUILD=1 - -!INCLUDE $(SOC_ROOT)\src\engine\makefile - -!INCLUDE $(SOC_ROOT)\src\studio\makefile - -!IF "$(TYPE)" == "DBSHIP" || "$(TYPE)" == "SHIP" || "$(BLDG_DEBUG)" != "" -!INCLUDE $(SOC_ROOT)\src\building\makefile -!ENDIF - -!IF "$(TYPE)" == "DBSHIP" || "$(TYPE)" == "SHIP" || "$(HELP_DEBUG)" != "" -!INCLUDE $(SOC_ROOT)\src\help\makefile -!ENDIF - -!IF "$(TYPE)" == "DBSHIP" || "$(TYPE)" == "SHIP" || "$(HELPA_DEBUG)" != "" -!INCLUDE $(SOC_ROOT)\src\helpaud\makefile -!ENDIF - -!IF "$(TYPE)" == "DBSHIP" || "$(TYPE)" == "SHIP" || "$(SHARED_DEBUG)" != "" -!INCLUDE $(SOC_ROOT)\src\shared\makefile -!ENDIF - -!INCLUDE $(SOC_ROOT)\tools\makefile - -# Leave this name blank, since it's hardly ever correct anyway -TGT_NAME= - -# NOTE: unlike the other "CLEAN" targets, this does not actually do a build. -# This is intentional (BY DESIGN). -CLEAN: CLEAN_BREN_OBJ - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.obj 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.pch 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.pdb 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.exe 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.res 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.chk 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.cht 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.cod 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.map 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.thd 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.lib 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.lnk 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.ilk 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.i 2> nul - -del $(SOC_ROOT)\obj\$(BLD_TYPE_DIR)\*.thd 2> nul - -CLEAN_BY_FILE: $(CLEAN_TARGETS_ROOT) - @echo on - - -ALL: $(ALL_TARGETS_ROOT) diff --git a/makefile.rul b/makefile.rul deleted file mode 100644 index 032ac55..0000000 --- a/makefile.rul +++ /dev/null @@ -1,130 +0,0 @@ -# Use this file to automatically declare rules for a group of targets. -# Set the "SRC_DIR" variable to the appropriate directory, set OBJ_DIR -# to the appropriate target directory and then include this file. - -# If the "LOCAL_BUILD" variable is defined and set to "1", this indicates that -# we're already cd'd to the target directory. This allows nmake to use a much -# simpler set of make rules. - -#-Compile rules------------------------------------------------------------- - - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" - -{$(SRC_DIR)}.cpp.obj: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.obj - -{$(SRC_DIR)}.cpp.exe: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.exe - -{$(SRC_DIR)}.asm.obj: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.obj - -{$(SRC_DIR)}.rc.res: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.res - -{$(SRC_DIR)}.cht.chk: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.chk - -{$(SRC_DIR)}.cht.thd: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.chk - -{$(SRC_DIR)}.cpp.i: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.i - -{$(SRC_DIR)}.cpp.cod: - @nmake /NOLOGO $(OBJ_DIR)\%|fF.cod - -!ENDIF # LOCAL_BUILD != 0 - - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.c{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.asm{$(OBJ_DIR)}.obj: - !@echo Compiling $(TGT_NAME) Assembly Src... $< - $(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $< - $(CHKERR) - - -{$(SRC_DIR)}.rc{$(OBJ_DIR)}.res: - !@echo Compiling $(TGT_NAME) Resource... $< - $(RC) $(DEFS) /Fo$@ $< - $(CHKERR) - - -{$(SRC_DIR)}.cht{$(OBJ_DIR)}.chk: - cl /E -I%|pF -I$(@D) $(DEFS) /Tp$< > $*.i - $(CHKERR) - $(CHOMP) $*.i $@ - $(CHKERR) - -{$(SRC_DIR)}.cht{$(OBJ_DIR)}.thd: - cl /E -I%|pF -I$(@D) $(DEFS) /Tp$< > $*.i - $(CHKERR) - $(CHOMP) $*.i $@ - $(CHKERR) - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.i: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) /E $(DEFS) $< > $@ - $(CHKERR) - - -{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.cod: - !@echo Compiling $(TGT_NAME) Src... $< - $(CPP) /FAcs $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch $(DEFS) /Fa$@ $< - $(CHKERR) - - -!ELSE # !LOCAL_BUILD - - -{$(SRC_DIR)}.cpp.obj: - $(CPP) $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.c.obj: - $(CPP) $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.asm.obj: - $(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $< - -{$(SRC_DIR)}.rc.res: - $(RC) $(DEFS) /Fo$@ $< - $(CHKERR) - -{$(SRC_DIR)}.cht.chk: - cl /P -I%|pF -I. $(DEFS) /Tp$< - $(CHKERR) - $(CHOMP) $(@B).i $@ - $(CHKERR) - -{$(SRC_DIR)}.cht.thd: - cl /P -I%|pF -I. $(DEFS) /Tp$< - $(CHKERR) - $(CHOMP) $(@B).i $@ - $(CHKERR) - -{$(SRC_DIR)}.cpp.i: - $(CPP) /P $(DEFS) $< - $(CHKERR) - -{$(SRC_DIR)}.cpp.cod: - $(CPP) /FAcs $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) /Fa$@ $< - $(CHKERR) - - -!ENDIF # LOCAL_BUILD diff --git a/setvars.bat b/setvars.bat deleted file mode 100644 index 99c2ff0..0000000 --- a/setvars.bat +++ /dev/null @@ -1,28 +0,0 @@ -:: Copyright (c) Microsoft Corporation. -:: Licensed under the MIT License. - -:: Variables documented in README.md - -:: Setup the Socrates Directory Environment Variable -set SOC_ROOT=%cd% -:: Setup the Kauai dir that's needed by most things -set KAUAI_ROOT=%SOC_ROOT%\kauai -:: Update includes to cover whats needed -set include=%include%;%SOC_ROOT%\INC;%SOC_ROOT%\BREN\INC;%KAUAI_ROOT%\SRC;%SOC_ROOT%\SRC - -:: Set project -set PROJ=SOC - -:: Set operating system to compile for -set ARCH=WIN - -:: Uncomment this to compile for Unicode -:: set UNICODE=1 - -:: Set build type -set TYPE=DBSHIP - -:: Use optimized assembly for Intel 80386 -set CHIP=IN_80386 - -:: BLD_TYPE_DIR will be set automatically \ No newline at end of file diff --git a/src/building/makefile b/src/building/makefile deleted file mode 100644 index 44ccdbc..0000000 --- a/src/building/makefile +++ /dev/null @@ -1,128 +0,0 @@ -#---building.mak - -!IFNDEF MAKEFILE_BUILDING -MAKEFILE_BUILDING = 1 - -!INCLUDE $(KAUAI_ROOT)\makefile.def - -#BUILDING SOURCE DIRECTORY -BLDG_SRC_DIR = $(SOC_ROOT)\src\building - -#SOC OBJ DIRECTORY -SOC_OBJ_ROOT_DIR = $(SOC_ROOT)\obj -SOC_OBJ_DIR = $(SOC_OBJ_ROOT_DIR)\$(BLD_TYPE_DIR) - -!IF "$(LOCAL_BUILD)" == "1" -TARGET_DIR = -!ELSE # LOCAL_BUILD -TARGET_DIR = $(SOC_OBJ_DIR)^\ -!ENDIF # !LOCAL_BUILD - - -SOC_HEADER_FILES = \ - $(SOC_ROOT)\inc\kidgs.chh \ - $(SOC_ROOT)\inc\assert.chh \ - $(SOC_ROOT)\inc\kidgsdef.h \ - $(KAUAI_ROOT)\src\kiddef.h \ - $(KAUAI_ROOT)\src\framedef.h \ - $(SOC_ROOT)\inc\stdiodef.h \ - $(SOC_ROOT)\inc\socdef.h \ - $(SOC_ROOT)\inc\buildgob.h \ - $(SOC_ROOT)\inc\sharedef.h \ - $(SOC_ROOT)\inc\sharutil.chh - -BLDG_CHH_FILES = $(BLDG_SRC_DIR)\socdefn.h - -BLDG_CHT_FILES = \ - $(BLDG_SRC_DIR)\backstag.cht\ - $(BLDG_SRC_DIR)\building.cht\ - $(BLDG_SRC_DIR)\imagin.cht\ - $(BLDG_SRC_DIR)\inspirat.cht\ - $(BLDG_SRC_DIR)\lobby.cht\ - $(BLDG_SRC_DIR)\login.cht\ - $(BLDG_SRC_DIR)\navbars.cht\ - $(BLDG_SRC_DIR)\palette.cht\ - $(BLDG_SRC_DIR)\projects.cht\ - $(BLDG_SRC_DIR)\snackbar.cht\ - $(BLDG_SRC_DIR)\street.cht\ - $(BLDG_SRC_DIR)\studiobg.cht\ - $(BLDG_SRC_DIR)\theatre.cht\ - $(BLDG_SRC_DIR)\ticket.cht\ - $(BLDG_SRC_DIR)\waiting.cht - -BLDG_CHUNK_TARGETS =\ - $(TARGET_DIR)building.chk - -BLDGHD_CHT_FILES = \ - $(BLDG_SRC_DIR)\bldghd.cht - -BLDGHD_CHUNK_TARGETS =\ - $(TARGET_DIR)bldghd.chk - - -#-Compile rules------------------------------------------------------------- - - -#OLD .cht.chk RULES -#{$(BLDG_SRC_DIR)}.cht{$(SOC_OBJ_DIR)}.chk: -# SET INCLUDE=$(BLDG_SRC_DIR)\pbm;$(BLDG_SRC_DIR)\bitmaps;$(BLDG_SRC_DIR)\sound;$(INCLUDE) -# cl /P -I$(BLDG_SRC_DIR) $(DEFS) /Tp$< -# $(CHOMP) $(BLDG_SRC_DIR)\$(@B).i $*.chk - - -#{$(BLDG_SRC_DIR)}.cht{$(SOC_OBJ_DIR)}.chk: -# SET INCLUDE=$(BLDG_SRC_DIR)\pbm;$(BLDG_SRC_DIR)\bitmaps;$(BLDG_SRC_DIR)\sound;$(INCLUDE) -# cl /E -I$(SOC_OBJ_DIR) $(DEFS) /Tp$< > $(SOC_OBJ_DIR)\%|fF.i -# $(CHOMP) $(SOC_OBJ_DIR)\$(@B).i $*.chk - -SRC_DIR = $(BLDG_SRC_DIR) -OBJ_DIR = $(SOC_OBJ_DIR) -!INCLUDE $(SOC_ROOT)\makefile.rul - -#-Targets------------------------------------------------------------------- - -ALL_BLDG = $(TARGET_DIR)building.chk $(TARGET_DIR)bldghd.chk -ALL_TARGETS_ROOT = $(ALL_TARGETS_ROOT) $(ALL_BLDG) - -CLEAN_BLDG = CLEAN_BLDG_CHUNKS -CLEAN_TARGETS_ROOT = $(CLEAN_TARGETS_ROOT) $(CLEAN_BLDG) - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" - -building.chk : ALL - -ALL: $(SOC_OBJ_DIR) BLDG_CONTENT -CLEAN: CLEAN_BLDG_CHUNKS ALL - -!ENDIF # LOCAL_BUILD != 0 - -$(SOC_OBJ_DIR) : - @echo Making Directories $(SOC_OBJ_DIR)... - if not exist $(SOC_OBJ_ROOT_DIR)/nul mkdir $(SOC_OBJ_ROOT_DIR) - if not exist $(SOC_OBJ_DIR)/nul mkdir $(SOC_OBJ_DIR) - -!ENDIF # LOCAL_BUILD != 1 - - -CLEAN_BLDG_CHUNKS: - @echo <nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -DEL /q dummy.nul $(TARGET_DIR)3dmovie.chk 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -< $*.i - $(CHKERR) - $(CHOMP) $*.i $@ - $(CHKERR) - -$(TARGET_DIR)3dmovie.exe : $(KAUAI_OBJ_GROUPS_FOR_UTEST) -$(TARGET_DIR)3dmovie.exe : $(UTEST_DEPS) $(UTEST_TARGETS) $(TARGET_DIR)utest.lnk - @echo Linking Utest Objects... - $(LINK) -link $(LFLAGS_GUI) \ - $(UTEST_DEPS) \ - $(UTEST_TARGETS) \ - -out:$(TARGET_DIR)3dmovie.exe @$(TARGET_DIR)utest.lnk - $(CHKERR) - -!ENDIF # !MAKEFILE_STUDIO diff --git a/tools/makefile b/tools/makefile deleted file mode 100644 index 7a36115..0000000 --- a/tools/makefile +++ /dev/null @@ -1,269 +0,0 @@ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. - -#---$(SOC_ROOT)\tools\makefile - -!IFNDEF MAKEFILE_SOC_TOOLS -MAKEFILE_SOC_TOOLS = 1 - -!INCLUDE $(KAUAI_ROOT)\makefile.def - - -#TOOLS SOURCE DIRECTORY -TOOLS_SRC_DIR = $(SOC_ROOT)\tools - -#SOC OBJ DIRECTORY -SOC_OBJ_ROOT_DIR = $(SOC_ROOT)\obj -SOC_OBJ_DIR = $(SOC_OBJ_ROOT_DIR)\$(BLD_TYPE_DIR) - -!IF "$(LOCAL_BUILD)" == "1" -TARGET_DIR = -!ELSE # LOCAL_BUILD -TARGET_DIR = $(SOC_OBJ_DIR)^\ -!ENDIF # !LOCAL_BUILD - - -BREN_LIB = $(SOC_ROOT)\elib\$(BLD_TYPE_DIR)\bren.lib\ - $(SOC_ROOT)\elib\$(BLD_TYPE_DIR)\brfmmxr.lib\ - $(SOC_ROOT)\elib\$(BLD_TYPE_DIR)\brfwmxr.lib\ - $(SOC_ROOT)\elib\$(BLD_TYPE_DIR)\brzbmxr.lib - - -DKIT_LIB = $(SOC_ROOT)\dkit\libdkit.lib\ - $(SOC_ROOT)\dkit\byteswap.obj\ - $(SOC_ROOT)\dkit\sysglob.obj - - - -KAUAI_OBJ_GROUPS_FOR_TDFMAKE =\ - $(BASE_OBJS)\ - $(SCREXE_OBJS)\ - $(SCRCOM_OBJS)\ - $(LEXER_OBJS)\ - $(GROUP_OBJS)\ - $(STREAM_OBJS)\ - $(FILE_OBJS) - - -KAUAI_OBJ_GROUPS_FOR_SITOBREN =\ - $(BASE_OBJS)\ - $(FILE_OBJS)\ - $(GROUP_OBJS)\ - $(CHSE_OBJS)\ - $(SCRCOM_OBJS)\ - $(LEXER_OBJS)\ - $(STREAM_OBJS)\ - $(SCREXE_OBJS)\ - $(MBMPIO_OBJS)\ - $(KAUAI_OBJ_DIR)\mssio.obj - - -KAUAI_OBJ_GROUPS_FOR_MKTMAP =\ - $(BASE_OBJS)\ - $(FILE_OBJS)\ - $(GROUP_OBJS)\ - $(MBMPIO_OBJS)\ - $(KAUAI_OBJ_DIR)\mssio.obj - -KAUAI_OBJ_GROUPS_FOR_PBMTOBMP =\ - $(BASE_OBJS)\ - $(FILE_OBJS)\ - $(GROUP_OBJS)\ - $(MBMPIO_OBJS)\ - $(GUI_OBJS)\ - $(SOUND_OBJS)\ - $(VIDEO_OBJS)\ - $(SCREXE_OBJS)\ - $(DOC_OBJS)\ - $(RICHTEXT_OBJS)\ - $(CTL_OBJS)\ - $(STREAM_OBJS)\ - $(DLG_OBJS)\ - $(TEXTEDIT_OBJS)\ - $(KID_OBJS)\ - $(SCRCOM_OBJS)\ - $(LEXER_OBJS)\ - $(KAUAI_OBJ_DIR)\mssio.obj - -TDFMAKE_TARGETS =\ - $(TARGET_DIR)tdfmake.obj - - -SITOBREN_TARGETS =\ - $(TARGET_DIR)sitobren.obj -SITOBREN_DEPS =\ - $(BREN_LIB)\ - $(DKIT_LIB) - - -MKTMAP_TARGETS =\ - $(TARGET_DIR)mktmap.obj -MKTMAP_DEPS =\ - $(TARGET_DIR)engine.lib\ - $(BREN_LIB) - - -PBMTOBMP_TARGETS =\ - $(TARGET_DIR)pbmtobmp.obj - -PBMTOBMP_DEPS =\ - $(TARGET_DIR)engine.lib\ - $(BREN_LIB) - -#-Compile rules------------------------------------------------------------- - - -PROGRAM_DATABASE = $(TARGET_DIR)soc.pdb -PRECOMPILED_HEADER = $(TARGET_DIR)soc.pch - -CPPEXTRA = /Zi /Fd$(PROGRAM_DATABASE) /Fp$(PRECOMPILED_HEADER) - -SRC_DIR=$(TOOLS_SRC_DIR) -OBJ_DIR=$(SOC_OBJ_DIR) -TGT_NAME=Tools - -!INCLUDE $(SOC_ROOT)\makefile.rul - - -#-Targets------------------------------------------------------------------- - -ALL_SOCTOOLS = $(TARGET_DIR)tdfmake.exe $(TARGET_DIR)mktmap.exe $(TARGET_DIR)pbmtobmp.exe -ALL_TARGETS_ROOT = $(ALL_TARGETS_ROOT) $(ALL_SOCTOOLS) - -CLEAN_SOCTOOLS = CLEAN_TDFMAKE CLEAN_SITOBREN CLEAN_MKTMAP CLEAN_PBMTOBMP -CLEAN_TARGETS_ROOT = $(CLEAN_TARGETS_ROOT) $(CLEAN_SOCTOOLS) - - -!IF "$(LOCAL_BUILD)" != "1" - -!IF "$(LOCAL_BUILD)" != "0" -ALL: $(SOC_OBJ_DIR) $(ALL_SOCTOOLS) -CLEAN: $(CLEAN_SOCTOOLS) ALL -!ENDIF # LOCAL_BUILD != 0 - -$(SOC_OBJ_DIR) : - @echo Making Directories $(SOC_OBJ_DIR)... - if not exist $(SOC_OBJ_ROOT_DIR)/nul mkdir $(SOC_OBJ_ROOT_DIR) - if not exist $(SOC_OBJ_DIR)/nul mkdir $(SOC_OBJ_DIR) - -!ENDIF # !LOCAL_BUILD - - -CLEAN_TDFMAKE: - @echo <nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<nul^ -DEL /q dummy.nul ) 2>nul -<