⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 使用BorlandC++4.5编译的一个MUD客户端程序
💻
字号:
head	2.3;access;symbols;locks; strict;comment	@# @;2.3date	96.02.04.22.57.14;	author tsurace;	state Release;branches;next	2.2;2.2date	95.10.31.02.21.07;	author tsurace;	state Beta;branches;next	2.1;2.1date	95.10.24.15.52.51;	author tsurace;	state Exp;branches;next	1.3;1.3date	95.10.12.00.06.16;	author tsurace;	state Beta;branches;next	1.2;1.2date	95.10.11.21.06.03;	author tsurace;	state Exp;branches;next	1.1;1.1date	95.10.05.17.52.01;	author tsurace;	state Exp;branches;next	;desc@Makefile for the win32 interface to VaporTalk.@2.3log@*** empty log message ***@text@# makefile for VTW (win32s) using Borland C++
# This makefile has been tested with Borland C++ V4.5 under Windows NT 3.5
#
# Notes:
#   All warnings are enabled.  Compilation with warnings is considered to
#   be a failure.

# $Id$

.autodepend

# ------------------------------------------------------------------------
# Environment and configuration
#
BC_DIR = C:\BC45
BC_BIN = $(BC_DIR)\BIN

# C flags that are common to debug/release builds
BASE_CFLAGS = -3 -W -w
#
CFLAGS=-DNDEBUG -O2 -k- $(BASE_CFLAGS) # Optimized version
TLINKFLAGS=-Tpe -aa -c -Oc
#
#CFLAGS=-v -k $(BASE_CFLAGS)           # Debug version
#TLINKFLAGS=-Tpe -aa -c -v -d
# 
#CFLAGS=-O2 -k- $(BASE_CFLAGS) # BETA version (with assertions)
#TLINKFLAGS=-Tpe -aa -c -Oc


# ----------------------------------------------------------------------
# Project components
# (You should not have to change this unless you add files, etc.)
#
OBJECTS=vt102em.obj ascscrn.obj keyev.obj global.obj esc_seq.obj \
        replace.obj debug.obj

RESOURCES=global.res
LIBS=..\vtlib.lib

# Default rules
.rc.res:
 $(BC_BIN)\brcc32.exe -i$(BC_DIR)\include $<
 
.cpp.obj:
	$(BC_BIN)\bcc32.exe -c  @@&&|
-I$(BC_DIR)\include
$(CFLAGS)
$**
|


# ----------------------------------------------------------------------
# Targets

all: vtw.exe

# Link everything together

vtw.exe: $(OBJECTS) $(RESOURCES) $(LIBS)
  $(BC_BIN)\tlink32.exe @@&&|
$(TLINKFLAGS) $(BC_DIR)\lib\c0w32+
$(OBJECTS)
vtw.exe
-x
$(LIBS) $(BC_DIR)\lib\import32 $(BC_DIR)\lib\cw32

$(RESOURCES)
|,&&|
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
|

### EOF ###
@2.2log@*** empty log message ***@text@d1 8a8 2# This is a makefile for VT win32 using Borland C++# This makefile has been tested with Borland C++ V4.5 and Windows NTd12 2a13 9# Project components#OBJECTS=vt102em.obj ascscrn.obj keyev.obj global.obj esc_seq.obj \        replace.obj debug.objRESOURCES=global.resLIBS=..\vtlib.lib# Borland compiler environmentd21 3d27 1a27 1#CFLAGS=-DNDEBUG -O2 -k- $(BASE_CFLAGS) # Optimized versiond29 5d35 2a36 2CFLAGS=-O2 -k- $(BASE_CFLAGS) # BETA version (with assertions)TLINKFLAGS=-Tpe -aa -c -Ocd38 2a40 2all: vtw.exed51 6@2.1log@Roll.@text@d25 4a28 1CFLAGS=-DNDEBUG -O2 -k- $(BASE_CFLAGS) # Optimized versiond32 1a32 1all: vt.exed47 1a47 1vt.exe: $(OBJECTS) $(RESOURCES) $(LIBS)d51 1a51 1vt.exed62 1a62 1### EOF ###@1.3log@Rearranged how it works, modified CC flags a bit.@text@@1.2log@Modified the structure somewhat (BC_DIR).Renamed vt102em.rc to vt.rc@text@a5 5# Borland compiler environment#BC_DIR = C:\BC45BC_BIN = $(BC_DIR)\BINd14 7a20 1# Compiler flagsd22 6a27 7CFLAGS=-v           TLINKFLAGS=-Tpe -aa -c -v -d # Optimized compiler flags#    #CFLAGS=-DNDEBUG -O2 -3#TLINKFLAGS=-Tpe -aa -c -Ocd29 1a29 1all: cfgexe vt.exe cfgcln d31 1d33 1a33 1 $(BC_BIN)\brcc32.exe -r -i$(BC_DIR)\include $<d36 1a36 7 $(BC_BIN)\bcc32.exe $(CFLAGS) {$< }.c.obj: $(BC_BIN)\bcc32.exe $(CFLAGS) {$< }cfgexe: @@copy &&|d38 3a40 3-c -W -3 -d -k--w   | bcc32.cfg >NULd44 1a44 1vt.exe: $(OBJECTS) $(RESOURCES)d46 1a46 1$(TLINKFLAGS) $(BC_BIN)\..\lib\c0w32+d50 1a50 1$(LIBS) $(BC_BIN)\..\lib\import32 $(BC_BIN)\..\lib\cw32d59 1a59 2cfgcln: @@del bcc32.cfg@1.1log@Initial revision@text@d6 11a16 1OBJECTS=vt102em.obj ascscrn.obj keyev.obj global.obj esc_seq.obj replace.objd19 1a19 1# Debug flagsd24 1a24 1# Optimized flagsd26 2a27 2#CFLAGS=-DNDEBUG -O2#TLINKFLAGS=-Tpe -aa -c -Oc d32 1a32 1 C:\BC45\BIN\brcc32.exe -r -iC:\BC45\BIN\..\include $<d35 1a35 1 C:\BC45\BIN\bcc32.exe $(CFLAGS) {$< }d38 1a38 1 C:\BC45\BIN\bcc32.exe $(CFLAGS) {$< }d42 1a42 1-IC:\BC45\BIN\..\included49 3a51 3vt.exe: $(OBJECTS) vt102em.res  C:\BC45\BIN\tlink32.exe @@&&|$(TLINKFLAGS) C:\BC45\BIN\..\lib\c0w32+d55 1a55 1$(LIBS) C:\BC45\BIN\..\lib\import32 C:\BC45\BIN\..\lib\cw32d57 1a57 1vt102em.res@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -