activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r719140 - /activemq/activemq-cpp/trunk/Makefile.win
Date Thu, 20 Nov 2008 00:27:52 GMT
Author: tabish
Date: Wed Nov 19 16:27:51 2008
New Revision: 719140

URL: http://svn.apache.org/viewvc?rev=719140&view=rev
Log:
Creating a Makefile for building the Library and Exe's on Windows.

Modified:
    activemq/activemq-cpp/trunk/Makefile.win

Modified: activemq/activemq-cpp/trunk/Makefile.win
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/Makefile.win?rev=719140&r1=719139&r2=719140&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/Makefile.win (original)
+++ activemq/activemq-cpp/trunk/Makefile.win Wed Nov 19 16:27:51 2008
@@ -1,162 +1,131 @@
-# Makefile.win for Win32 ActiveMQ-CPP
-#
-# Targets are:
-#
-#     build    - compile everything
-#     check    - run APR regression tests
-#     install  - compile everything
-#     clean    - mop up everything
-#
-# You can override the build mechansim, choose only one;
-#
-#     USEMAK=1 - compile from exported make files
-#     USESLN=1 - compile from converted .sln / .vcproj VC7+ files
-#
-# Define ARCH to your desired preference (your PATH must point
-# to the correct compiler tools!)  Choose only one;
-#
-#     ARCH="Win32 Release"
-#     ARCH="Win32 Debug"
-#     ARCH="Win32 ReleaseDLL"
-#     ARCH="Win32 DebugDLL"
-#     ARCH="x64 Release"
-#     ARCH="x64 Debug"
-#     ARCH="x64 ReleaseDLL"
-#     ARCH="x64 DebugDLL"
-#
-# For example;
-#
-#   nmake -f Makefile.win PREFIX=C:\ActiveMQ-CPP build check install clean
-#
-
-!IF EXIST("vs2005-build\vs2005-activemq-cpp.sln") && ([msbuild /help > NUL 2>&1]
== 0) \
-    && !defined(USEMAK)
-USESLN=1
-USEMAK=0
-!ELSEIF EXIST("activemq-cpp.mak")
-USESLN=0
-USEMAK=1
-!ENDIF
-
-PREFIX=..\ActiveMQ-CPP
-
-!IF [$(COMSPEC) /c cl /nologo /? \
-	| $(SystemRoot)\System32\find.exe "x64" >NUL ] == 0
-ARCH=x64 Release
-!ELSE
-ARCH=Win32 Release
-!ENDIF
-
-!MESSAGE ARCH        = $(ARCH)
-!MESSAGE PREFIX      = $(PREFIX)  (install path)
-
-
-# Utility and Translation things, nothing here for the user
-#
-!IF "$(ARCH)" == "Win32 Release"
-SLNARCH=Release|Win32
-ARCHOSPATH=Release
-LIBSOSPATH=LibR
-!ELSEIF "$(ARCH)" == "Win32 Debug"
-SLNARCH=Debug|Win32
-ARCHOSPATH=Debug
-LIBSOSPATH=LibD
-!ELSEIF "$(ARCH)" == "Win32 ReleaseDLL"
-SLNARCH=Release|Win32
-ARCHOSPATH=Release
-LIBSOSPATH=LibR
-!ELSEIF "$(ARCH)" == "Win32 DebugDLL"
-SLNARCH=Debug|Win32
-ARCHOSPATH=Debug
-LIBSOSPATH=LibD
-!ELSEIF "$(ARCH)" == "x64 Release"
-SLNARCH=Release|x64
-ARCHOSPATH=x64\Release
-LIBSOSPATH=x64\LibR
-!ELSEIF "$(ARCH)" == "x64 Debug"
-SLNARCH=Debug|x64
-ARCHOSPATH=x64\Debug
-LIBSOSPATH=x64\LibD
-!ELSEIF "$(ARCH)" == "x64 ReleaseDLL"
-SLNARCH=Release|x64
-ARCHOSPATH=x64\Release
-LIBSOSPATH=x64\LibR
-!ELSEIF "$(ARCH)" == "x64 DebugDLL"
-SLNARCH=Debug|x64
-ARCHOSPATH=x64\Debug
-LIBSOSPATH=x64\LibD
-!ENDIF
-
-!IFNDEF MAKEOPT
-# Only default the behavior if MAKEOPT= is omitted
-!IFDEF _NMAKE_VER
-# Microsoft NMake options
-MAKEOPT=-nologo
-!ENDIF
-!ENDIF
-
-
-all: build check
-
-!IF $(USEMAK) == 1
-
-clean:
-	$(MAKE) $(MAKEOPT) -f Makefile.win ARCH="$(ARCH)" \
-		CTARGET=CLEAN build
-
-build:
-	$(MAKE) $(MAKEOPT) -f activemq-cpp.mak         CFG="activemq - $(ARCH)" RECURSE=0 $(CTARGET)
-	$(MAKE) $(MAKEOPT) -f libactivemq-cpp.mak      CFG="libactivemq - $(ARCH)" RECURSE=0 $(CTARGET)
-
-!ELSEIF $(USESLN) == 1
-
-clean:
-    cd vs2005-build
-	-msbuild vs2005-activemq-cpp.sln /target:clean "$(SLNARCH)" /project vs2005-activemq-cpp
-	-msbuild vs2005-activemq-cpp.sln /target:clean "$(SLNARCH)" /project vs2005-activemq-example
-	-msbuild vs2005-activemq-cpp.sln /target:clean "$(SLNARCH)" /project vs2005-activemq-integration
-	-msbuild vs2005-activemq-cpp.sln /target:clean "$(SLNARCH)" /project vs2005-activemq-test
-	cd ..
-
-build:
-    cd vs2005-build
-	msbuild vs2005-activemq-cpp.sln /target:build "$(SLNARCH)" /project vs2005-activemq-cpp
-	msbuild vs2005-activemq-cpp.sln /target:build "$(SLNARCH)" /project vs2005-activemq-example
-	msbuild vs2005-activemq-cpp.sln /target:build "$(SLNARCH)" /project vs2005-activemq-integration
-	msbuild vs2005-activemq-cpp.sln /target:build "$(SLNARCH)" /project vs2005-activemq-test
-    cd ..
-
-!ENDIF
-
-
-checkamq:
-	cd test
-	 $(MAKE) $(MAKEOPT) -f Makefile.win MODEL=static \
-		OUTDIR=$(LIBSOSPATH) check
-	 $(MAKE) $(MAKEOPT) -f Makefile.win MODEL=dynamic \
-		OUTDIR=$(ARCHOSPATH) check
-	 cd ..
-
-check: checkamq
-
-
-install:
-	echo Y >.y
-	echo A >.A
-	@if NOT EXIST "$(PREFIX)\."		mkdir "$(PREFIX)"
-	@if NOT EXIST "$(PREFIX)\bin\."		mkdir "$(PREFIX)\bin"
-	@if NOT EXIST "$(PREFIX)\include\."	mkdir "$(PREFIX)\include"
-	@if NOT EXIST "$(PREFIX)\lib\."		mkdir "$(PREFIX)\lib"
-	copy CHANGES "$(PREFIX)\CHANGES.txt" <.y
-	copy LICENSE "$(PREFIX)\LICENSE.txt" <.y
-	copy NOTICE  "$(PREFIX)\NOTICE.txt"  <.y
-	xcopy src\main\*.h		"$(PREFIX)\include\" /d < .a
-	copy $(LIBSOSPATH)\apr-1.lib		"$(PREFIX)\lib\" <.y
-	copy $(LIBSOSPATH)\apr-1.pdb		"$(PREFIX)\lib\" <.y
-	copy $(ARCHOSPATH)\libapr-1.lib		"$(PREFIX)\lib\" <.y
-	copy $(ARCHOSPATH)\libapr-1.exp		"$(PREFIX)\lib\" <.y
-	copy $(ARCHOSPATH)\libapr-1.dll		"$(PREFIX)\bin\" <.y
-	copy $(ARCHOSPATH)\libapr-1.pdb		"$(PREFIX)\bin\" <.y
-	del .y
-	del .a
-
+# Makefile.win for Win32 ActiveMQ-CPP
+#
+# Targets are:
+#
+#     build    - compile everything
+#     check    - run APR regression tests
+#     install  - compile everything
+#     clean    - mop up everything
+#
+# You can override the build mechansim, choose only one;
+#
+#     USEMAK=1 - compile from exported make files
+#     USESLN=1 - compile from converted .sln / .vcproj VC7+ files
+#
+# Define ARCH to your desired preference (your PATH must point
+# to the correct compiler tools!)  Choose only one;
+#
+#     ARCH="Win32"
+#     ARCH="x64"
+#
+# Set CONFIG to your desired build type.
+#
+#     CONFIG="ReleaseDLL"
+#     CONFIG="DebugDLL"
+#     CONFIG="Release"
+#     CONFIG="Debug"
+#
+# Set VERBOCITY to indicate how much information is logged about the build.
+#
+#     VERBOCITY=quiet
+#     VERBOCITY=minimal
+#     VERBOCITY=normal
+#     VERBOCITY=detailed
+#     VERBOCITY=diagnostic
+#
+# For example;
+#
+#   nmake -f Makefile.win PREFIX=C:\ActiveMQ-CPP build check install clean
+#
+
+!IF EXIST(".\vs2005-build\vs2005-activemq-cpp.sln") && ([msbuild /help > NUL 2>&1]
== 0) \
+    && !defined(USEMAK)
+USESLN=1
+USEMAK=0
+!ELSEIF EXIST("activemq-cpp.mak")
+USESLN=0
+USEMAK=1
+!ENDIF
+
+PREFIX=..\ActiveMQ-CPP
+CONFIG=Debug
+VERBOCITY=Normal
+
+!IF [$(COMSPEC) /c cl /nologo /? \
+	| $(SystemRoot)\System32\find.exe "x64" >NUL ] == 0
+ARCH=x64
+!ELSE
+ARCH=Win32
+!ENDIF
+
+!MESSAGE ARCH          = $(ARCH)
+!MESSAGE CONFIG        = $(CONFIG)
+!MESSAGE VERBOCITY     = $(VERBOCITY)
+!MESSAGE PREFIX        = $(PREFIX)  (install path)
+
+rebuild: clean build
+
+all: build check
+
+!IF $(USEMAK) == 1
+
+clean:
+	$(MAKE) $(MAKEOPT) -f Makefile.win ARCH="$(ARCH)" \
+		CTARGET=CLEAN build
+
+build:
+	$(MAKE) $(MAKEOPT) -f activemq-cpp.mak         CFG="activemq - $(ARCH)" RECURSE=0 $(CTARGET)
+	$(MAKE) $(MAKEOPT) -f libactivemq-cpp.mak      CFG="libactivemq - $(ARCH)" RECURSE=0 $(CTARGET)
+
+!ELSEIF $(USESLN) == 1
+
+clean:
+	cd vs2005-build
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq:Clean /p:Configuration=$(CONFIG);Platform=$(ARCH)
/verbosity:$(VERBOCITY)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-example:Clean /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-integration-tests:Clean /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-unittests:Clean /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	cd ..
+
+build:
+	cd vs2005-build
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq /p:Configuration=$(CONFIG);Platform=$(ARCH)
/verbosity:$(VERBOCITY)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-example /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-integration-tests /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	-msbuild vs2005-activemq-cpp.sln /t:vs2005-activemq-unittests /p:Configuration=$(CONFIG);Platform=$(ARCH)
+	cd ..
+
+!ENDIF
+
+
+checkamq:
+	cd test
+	 $(MAKE) $(MAKEOPT) -f Makefile.win MODEL=static \
+		OUTDIR=$(LIBSOSPATH) check
+	 $(MAKE) $(MAKEOPT) -f Makefile.win MODEL=dynamic \
+		OUTDIR=$(ARCHOSPATH) check
+	 cd ..
+
+check: checkamq
+
+
+install:
+	echo Y >.y
+	echo A >.A
+	@if NOT EXIST "$(PREFIX)\."		mkdir "$(PREFIX)"
+	@if NOT EXIST "$(PREFIX)\bin\."		mkdir "$(PREFIX)\bin"
+	@if NOT EXIST "$(PREFIX)\include\."	mkdir "$(PREFIX)\include"
+	@if NOT EXIST "$(PREFIX)\lib\."		mkdir "$(PREFIX)\lib"
+	copy CHANGES "$(PREFIX)\CHANGES.txt" <.y
+	copy LICENSE "$(PREFIX)\LICENSE.txt" <.y
+	copy NOTICE  "$(PREFIX)\NOTICE.txt"  <.y
+	xcopy src\main\*.h		"$(PREFIX)\include\" /d < .a
+	copy $(LIBSOSPATH)\apr-1.lib		"$(PREFIX)\lib\" <.y
+	copy $(LIBSOSPATH)\apr-1.pdb		"$(PREFIX)\lib\" <.y
+	copy $(ARCHOSPATH)\libapr-1.lib		"$(PREFIX)\lib\" <.y
+	copy $(ARCHOSPATH)\libapr-1.exp		"$(PREFIX)\lib\" <.y
+	copy $(ARCHOSPATH)\libapr-1.dll		"$(PREFIX)\bin\" <.y
+	copy $(ARCHOSPATH)\libapr-1.pdb		"$(PREFIX)\bin\" <.y
+	del .y
+	del .a
+



Mime
View raw message