博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nmake 示例
阅读量:6161 次
发布时间:2019-06-21

本文共 3596 字,大约阅读时间需要 11 分钟。

  hot3.png

nmakefile   []

# -*- tab-width: 4 -*- # # Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #  # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # This Makefile builds .jar files for the DNS-SD Java sample apps. # You must have the Java support installed. # # nmake with no arguments builds all production targets. # 'nmake DEBUG=1' to build debugging targets. # 'nmake clean' or 'nmake clean DEBUG=1' to delete prod/debug objects & targets # # To run nmake, you may need to set up your PATH correctly, using a script # such as: "\Program Files\Microsoft Visual Studio .NET\Common7\tools\vsvars32.bat" # # The default location of the JDK is \javasdk. You can override this on the # command line (e.g. 'nmake JDK=\j2dk1.4.2_03').  ############################################################################  JDK = $(JAVA_HOME)CP = copyRM = del /QRMDIR = rmdir /S /QJAVAC = $(JDK)\bin\javacJAVAH = $(JDK)\bin\javahJAR = $(JDK)\bin\jar # Set up diverging paths for debug vs. prod builds DEBUG=0!if $(DEBUG) == 1JFLAGS = -gOBJDIR = objects\debugBUILDDIR = build\debug!elseJFLAGS = OBJDIR = objects\prodBUILDDIR = build\prod!endifSCOBJ = $(OBJDIR)\SimpleChatBAOBJ = $(OBJDIR)\BrowserApp #############################################################################  all: setup Java postbuild # 'setup' sets up the build directory structure the way we want setup: @if not exist objects		mkdir objects	@if not exist build			mkdir build	@if not exist $(OBJDIR)		mkdir $(OBJDIR)	@if not exist $(SCOBJ)		mkdir $(SCOBJ)	@if not exist $(BAOBJ)		mkdir $(BAOBJ)	@if not exist $(BUILDDIR)	mkdir $(BUILDDIR) postbuild: @if not "%RC_XBS%"=="YES" GOTO END	@if not exist "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" mkdir "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @copy "nmakefile" "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @copy "BrowserApp.java" "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @copy "SimpleChat.java" "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @copy "Swing*.java" "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @copy "$(BUILDDIR)\*.jar" "$(DSTROOT)\Program Files\Bonjour SDK\Samples\Java" @:END # clean removes targets and objects clean: @if exist $(OBJDIR)		$(RMDIR) $(OBJDIR)	@if exist $(BUILDDIR)	$(RMDIR) $(BUILDDIR) #############################################################################  Java: setup $(BUILDDIR)\SimpleChat.jar $(BUILDDIR)\BrowserApp.jar	@echo "Build complete" SIMPLECHATOBJ =	$(SCOBJ)\SwingBrowseListener.class \				$(SCOBJ)\SwingQueryListener.class \				$(SCOBJ)\SimpleChat.class SIMPLECHATMAN = SimpleChat.manifest $(BUILDDIR)\SimpleChat.jar: $(SIMPLECHATOBJ) $(SIMPLECHATMAN)	$(JAR) -cfm $@ $(SIMPLECHATMAN) -C $(SCOBJ) .BROWSERAPPOBJ =	$(BAOBJ)\BrowserApp.class BROWSERAPPMAN = BrowserApp.manifest $(BUILDDIR)\BrowserApp.jar: $(BROWSERAPPOBJ) $(BROWSERAPPMAN)	$(JAR) -cfm $@ $(BROWSERAPPMAN) -C $(BAOBJ) .JAVASRC	= ..SUFFIXES : .java {$(JAVASRC)}.java{$(BAOBJ)}.class: $(JAVAC) -d $(BAOBJ) -classpath $(BAOBJ);$(DNS_SD) $< {$(JAVASRC)}.java{$(SCOBJ)}.class: $(JAVAC) -d $(SCOBJ) -classpath $(SCOBJ);$(DNS_SD) $<

转载于:https://my.oschina.net/doz/blog/137093

你可能感兴趣的文章
css 动画 和 响应式布局和兼容性
查看>>
csrf 跨站请求伪造相关以及django的中间件
查看>>
MySQL数据类型--与MySQL零距离接触2-11MySQL自动编号
查看>>
生日小助手源码运行的步骤
查看>>
Configuration python CGI in XAMPP in win-7
查看>>
bzoj 5006(洛谷 4547) [THUWC2017]Bipartite 随机二分图——期望DP
查看>>
CF 888E Maximum Subsequence——折半搜索
查看>>
欧几里德算法(辗转相除法)
查看>>
面试题1-----SVM和LR的异同
查看>>
MFC控件的SubclassDlgItem
查看>>
如何避免历史回退到登录页面
查看>>
《图解HTTP》1~53Page Web网络基础 HTTP协议 HTTP报文内的HTTP信息
查看>>
unix环境高级编程-高级IO(2)
查看>>
树莓派是如何免疫 Meltdown 和 Spectre 漏洞的
查看>>
雅虎瓦片地图切片问题
查看>>
HTML 邮件链接,超链接发邮件
查看>>
HDU 5524:Subtrees
查看>>
手机端userAgent
查看>>
pip安装Mysql-python报错EnvironmentError: mysql_config not found
查看>>
http协议组成(请求状态码)
查看>>