# # Psi History File Merger (PHFM) # Borland C++/C++Builder makefile # CC_Disk = C: CC_Dir = $(CC_Disk)\BC55\bin Include_Dir = $(CC_Disk)\BC55\include Lib_Dir = $(CC_Disk)\BC55\lib CC = $(CC_Dir)\bcc32.exe LNK = $(CC_Dir)\ilink32.exe CC_Opts = -I$(Include_Dir) -x -wall !ifdef _DEBUG CC_Opts = $(CC_Opts) -v -y -Od -DDEBUG -D_DEBUG -DNDEBUG !else CC_Opts = $(CC_Opts) -O2 -6 !endif LNK_cmm_Opts = -L$(Lib_Dir) -V4.0 -c -x -Gz !ifdef _DEBUG LNK_cmm_Opts = $(LNK_cmm_Opts) -m -v -C !endif !ifdef SAVE_DISK LNK_cmm_Opts = $(LNK_cmm_Opts) -Gn !endif LNK_app_Opts = $(LNK_cmm_Opts) -Tpe -aa LNK_con_Opts = $(LNK_cmm_Opts) -Tpe -ap LNK_dll_Opts = $(LNK_cmm_Opts) -Tpd TARGET = phfm.exe TOBJECT = phfm.obj OBJECTS = \ $(TOBJECT) .suffixes: .h .cpp .cpp.obj: $(CC) $(CC_Opts) -o$@ -c $< all: $(TARGET) clean: copy &&| @echo off echo Removing all targets... if exist $(TARGET) del $(TARGET) echo Removing incremental linker state files... if exist $(TARGET:.exe=.il?) del $(TARGET:.exe=.il?) echo Removing incremental linker map files... if exist $(TARGET:.exe=.map) del $(TARGET:.exe=.map) echo Removing object files... for %%f in ($(OBJECTS)) do if exist %%f del %%f echo Removing debugger symbol files... if exist $(TARGET:.exe=.tds) del $(TARGET:.exe=.tds) | $@.bat $@.bat del $@.bat paranoia: proper proper: rebuild: clean all $(TARGET): $(OBJECTS) $(LNK) $(LNK_con_Opts) c0x32.obj $(OBJECTS), $<, $*, import32.lib cw32.lib