VC makefile 编译
来源:互联网 发布:vscode调整字体大小 编辑:程序博客网 时间:2024/06/06 10:44
开始->程序 -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 命令提示
进入后命令模式后,转换到工程目录下输入 nmake (保证此目录下有 makefile).
以下是简单的makefile 样本:
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
# ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 1993 - 1996 Microsoft Corporation. All Rights Reserved.
#
#
# Processor independent makefile
# Nmake macros for building Windows 32-Bit apps
!include <win32.mak>
PROJ = MTTTY
all: $(PROJ).exe
# Define project specific macros
PROJ_OBJS = about.obj error.obj \
init.obj mttty.obj \
reader.obj readstat.obj \
settings.obj status.obj \
transfer.obj writer.obj \
MyDialog.obj
STD_LIBS = libcmt.lib kernel32.lib \
user32.lib gdi32.lib \
comdlg32.lib
EXTRA_LIBS = winmm.lib comctl32.lib
GLOBAL_DEP = mttty.h ttyinfo.h
RC_DEP = resource.h mttty.ico \
mttty2.ico mttty3.ico \
mttty4.ico
# Inference rule for updating the object files
.c.obj:
$(cc) $(cdebug) /MT $(cflags) $(cvars) $*.c
# Build rule for resource file
$(PROJ).res: $(PROJ).rc $(RC_DEP)
$(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc
# Build rule for EXE
$(PROJ).EXE: $(PROJ_OBJS) $(PROJ).res
$(link) $(linkdebug) $(guilflags) \
$(PROJ_OBJS) $(PROJ).res $(STD_LIBS) $(EXTRA_LIBS) \
-out:$(PROJ).exe
# Rules for cleaning out those old files
clean:
del *.bak
del *.pdb
del *.obj
del *.res
del *.exp
del *.map
del *.sbr
del *.bsc
- vc++ makefile编译
- VC makefile 编译
- VC 编译makefile
- vc的MakeFile工程直接编译驱动
- vc的MakeFile工程直接编译驱动
- 在VC中利用Makefile工程编译DDK驱动
- 在VC中利用Makefile工程编译DDK驱动
- 在VC里如何用Makefile文件编译?
- 在VC里如何用Makefile文件编译?
- 使用VC编译perl-5.16.2,如何分析makefile
- 在VC里如何用Makefile文件编译?
- 编译 makefile
- makefile编译
- 初探vcIDE背后的秘密-为vc项目写makefile,实现自动独立编译
- [转载收藏] 在VC中利用Makefile工程编译DDK驱动
- 用命令行控制VC6 编译VC工程(注意这里不是makefile那种)
- mingw 编译可供 vc 连接库的Makefile. dumpbin 产生 def,进而产生lib
- windows环境中使用VC的nmake和makefile编译c++程序
- Web service是什么?
- J2ME中NoClassDefFoundError异常处理
- [转载]MYSQ数据库CLOB、BLOB存取
- SQL 模糊查询
- java中private, public,protected的区别
- VC makefile 编译
- jetty对cxf的支持,简单的cxf实例
- Winform 记住密码
- Java中static、this、super、final的用法详解
- ps -aux的错误用法
- Android的启动过程: zygote & Services & HomeScreen
- python with关键字用法
- DTS官方博客成立
- Android系统源码数据库(mmssms.db)中几个表之间的关系【转】