Made changes necessary to build the client on windows using cygwin.
This commit is contained in:
		| @@ -95,6 +95,136 @@ we are, look at the various TODO lists present in the child folders. | |||||||
|  |  | ||||||
| The schedule for completing auth_token is agressive. | The schedule for completing auth_token is agressive. | ||||||
|  |  | ||||||
|  | REQUIREMENTS FOR BUILDING THE SOFTWARE PACKAGE ON WINDOWS | ||||||
|  |  | ||||||
|  |   - Install Visual Studio .NET 2003 | ||||||
|  |   - Install Windows Platform SDK for Windows Server 2003 SP1 | ||||||
|  |   - Register the platform sdk with VS - Start/All Programs/Windows Platform SDK for Windows Server 2003 SP1/Visual Studio Registration/Register PSDK Directories with Visual Studio | ||||||
|  |   - Install Cygwin - See instructions below. | ||||||
|  |   - Extract Expat-2.0.0.zip in casa source directory parent | ||||||
|  |   - Install Casa | ||||||
|  |  | ||||||
|  | Download and start cygwin install: | ||||||
|  | Browse to http://sources.redhat.com/cygwin/  | ||||||
|  |  | ||||||
|  | Click on "Install or update now!" or "Install Cygwin now" | ||||||
|  |  | ||||||
|  | Cygwin Setup: | ||||||
|  | Next | ||||||
|  |  | ||||||
|  | Cygwin Setup - Choose Installation Type: | ||||||
|  | Install from Internet | ||||||
|  | Next | ||||||
|  |  | ||||||
|  | Cygwin Setup - Choose Installation Directory: | ||||||
|  | Root Directory: C:\cygwin | ||||||
|  | Install For:  "All Users" | ||||||
|  |  | ||||||
|  | Default Text File Type: DOS | ||||||
|  |  | ||||||
|  | Cygwin Setup - Select Local Package Directory: | ||||||
|  |   Local Package Directory: C:\cygwin-packages | ||||||
|  |  | ||||||
|  | Cygwin Setup - Select Connection Type: | ||||||
|  |   Direct Connection | ||||||
|  |  | ||||||
|  | Choose A Download Site: | ||||||
|  |   ftp://ftp.nas.nasa.gov  | ||||||
|  |  | ||||||
|  | Cywin Setup - Select Packages: | ||||||
|  |   Base: | ||||||
|  |     defaults | ||||||
|  |  | ||||||
|  |   Devel: | ||||||
|  |     autoconf | ||||||
|  |     automake | ||||||
|  |     libtool | ||||||
|  |     make | ||||||
|  |     pkgconfig | ||||||
|  |     cvs | ||||||
|  |     gcc | ||||||
|  |     gcc-g++ | ||||||
|  |  | ||||||
|  |   Editors: | ||||||
|  |     vim (optional) | ||||||
|  |  | ||||||
|  |   Net: | ||||||
|  |     openssh | ||||||
|  |     openssl | ||||||
|  |  | ||||||
|  |   Text: | ||||||
|  |     more | ||||||
|  |  | ||||||
|  |   Utils: | ||||||
|  |     clear (optional) | ||||||
|  |  | ||||||
|  | Cygwin Setup - Create Icons: | ||||||
|  | Finish | ||||||
|  |  | ||||||
|  | Edit cygwin.bat (c:\cygwin\cygwin.bat) to add a call to | ||||||
|  | %VS71COMNTOOLS%\vsvars32.bat (see example below). This sets up the | ||||||
|  | Visual Studio tools in Cygwin. | ||||||
|  |  | ||||||
|  | Sample cygwin.bat: | ||||||
|  |  | ||||||
|  | @echo off | ||||||
|  |  | ||||||
|  | call "%VS71COMNTOOLS%\vsvars32.bat" > NUL | ||||||
|  |  | ||||||
|  | C: | ||||||
|  | chdir C:\cygwin\bin | ||||||
|  |  | ||||||
|  | bash --login -i | ||||||
|  |  | ||||||
|  |  | ||||||
|  | REQUIREMENTS FOR BUILDING THE SOFTWARE PACKAGE ON LINUX | ||||||
|  |  | ||||||
|  | Install latest mono and mono-devel RPM - Obtain RPMs from | ||||||
|  | www.go-mono.org. | ||||||
|  |  | ||||||
|  |  | ||||||
|  | BUILDING THE SOFTWARE PACKAGE | ||||||
|  |  | ||||||
|  | Windows:  Start at Step 1. | ||||||
|  | Linux:  Skip to Step 2. | ||||||
|  |  | ||||||
|  | 1. Run cygwin.bat to start up Cygwin. | ||||||
|  |  | ||||||
|  | 2. Generate autotools files: | ||||||
|  | ./autogen.sh --prefix=/<install_dir>  [--enable-debug] | ||||||
|  | (<install_dir> is some writable directory where 'make install' will | ||||||
|  | install files for testing. | ||||||
|  |  | ||||||
|  | 3. To reconfigure later, or to configure software that came from a source | ||||||
|  | distribution (.tar.gz) file, use configure. | ||||||
|  | ./configure --prefix/<install_dir> [--enable-debug] | ||||||
|  | (run ./configure --help for more options) | ||||||
|  |  | ||||||
|  | 4. Select your make target, here are a few interesting ones: | ||||||
|  |  | ||||||
|  | make [all] - build product files (package files not included) | ||||||
|  |  | ||||||
|  | make clean - clean up files built by 'make all' | ||||||
|  |  | ||||||
|  | make package - build product and package files | ||||||
|  |  | ||||||
|  | make package-clean - clean up package files | ||||||
|  |  | ||||||
|  | make install - install product files to <install_dir> specified by | ||||||
|  | --prefix during configure | ||||||
|  |  | ||||||
|  | make uninstall - undo 'make install' | ||||||
|  |  | ||||||
|  | make dist - build a source distribution tarball. | ||||||
|  |  | ||||||
|  | make distclean - removes files to return state back to same as the | ||||||
|  | source distribution (configure, Makefile.in files, and other distributed | ||||||
|  | autotools files are not removed) | ||||||
|  |  | ||||||
|  | make maintainer-clean - removes files to return state back to same as | ||||||
|  | the CVS checkout (you will need to run ./autogen.sh again before running | ||||||
|  | make again) | ||||||
|  |  | ||||||
| SECURITY CONSIDERATIONS | SECURITY CONSIDERATIONS | ||||||
|  |  | ||||||
| CASA Authentication Tokens when compromised can be used to either impersonate | CASA Authentication Tokens when compromised can be used to either impersonate | ||||||
| @@ -109,5 +239,3 @@ recommended that the tokens be transmitted using SSL. | |||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ | |||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) mechanisms | SUBDIRS = $(TARGET_OS) mechanisms | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux mechanisms | DIST_SUBDIRS = linux windows mechanisms | ||||||
|  |  | ||||||
| CFILES = | CFILES = | ||||||
|  |  | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ | |||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux windows | ||||||
|  |  | ||||||
| CFILES = *.c | CFILES = *.c | ||||||
|  |  | ||||||
|   | |||||||
| @@ -0,0 +1,69 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2004 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = krb5.vcproj ../*.c *.c *.h *.conf *.def | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | PACKAGE = krb5 | ||||||
|  | TARGET_FILE = krb5mech.dll | ||||||
|  | LOG_FILE = $(PACKAGE).log | ||||||
|  |  | ||||||
|  | all-am: $(TARGET_FILE) | ||||||
|  |  | ||||||
|  | .PHONY: $TARGET_FILE) devenv | ||||||
|  |  | ||||||
|  | devenv: | ||||||
|  | 	@if ! test -x "$(VSINSTALLDIR)/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi | ||||||
|  |  | ||||||
|  | $(TARGET_FILE): devenv | ||||||
|  | 	@rm -f $(LOG_FILE) $@ | ||||||
|  | 	@CMD='"$(VSINSTALLDIR)/devenv.exe" ../../../../auth.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ | ||||||
|  | 	echo $$CMD; \ | ||||||
|  | 	if eval $$CMD; then \ | ||||||
|  | 		ls -l $(TARGET_CFG)/$(TARGET_FILE); \ | ||||||
|  | 	else \ | ||||||
|  | 		grep -a "ERROR:" $(LOG_FILE); \ | ||||||
|  | 	fi | ||||||
|  | 	 | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug*/Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug */Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile  | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -22,7 +22,7 @@ | |||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux windows | ||||||
|  |  | ||||||
| CFILES = *.c | CFILES = *.c | ||||||
|  |  | ||||||
|   | |||||||
| @@ -0,0 +1,69 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2004 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = pwd.vcproj ../*.c *.c *.h *.conf *.def | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | PACKAGE = pwd | ||||||
|  | TARGET_FILE = pwmech.dll | ||||||
|  | LOG_FILE = $(PACKAGE).log | ||||||
|  |  | ||||||
|  | all-am: $(TARGET_FILE) | ||||||
|  |  | ||||||
|  | .PHONY: $TARGET_FILE) devenv | ||||||
|  |  | ||||||
|  | devenv: | ||||||
|  | 	@if ! test -x "$(VSINSTALLDIR)/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi | ||||||
|  |  | ||||||
|  | $(TARGET_FILE): devenv | ||||||
|  | 	@rm -f $(LOG_FILE) $@ | ||||||
|  | 	@CMD='"$(VSINSTALLDIR)/devenv.exe" ../../../../auth.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ | ||||||
|  | 	echo $$CMD; \ | ||||||
|  | 	if eval $$CMD; then \ | ||||||
|  | 		ls -l $(TARGET_CFG)/$(TARGET_FILE); \ | ||||||
|  | 	else \ | ||||||
|  | 		grep -a "ERROR:" $(LOG_FILE); \ | ||||||
|  | 	fi | ||||||
|  | 	 | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug*/Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug */Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile  | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
							
								
								
									
										69
									
								
								CASA-auth-token/non-java/client/windows/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								CASA-auth-token/non-java/client/windows/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,69 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2004 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = client.vcproj ../*.c *.c *.h *.def | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | PACKAGE = client | ||||||
|  | TARGET_FILE = authtoken.dll | ||||||
|  | LOG_FILE = $(PACKAGE).log | ||||||
|  |  | ||||||
|  | all-am: $(TARGET_FILE) | ||||||
|  |  | ||||||
|  | .PHONY: $TARGET_FILE) devenv | ||||||
|  |  | ||||||
|  | devenv: | ||||||
|  | 	@if ! test -x "$(VSINSTALLDIR)/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi | ||||||
|  |  | ||||||
|  | $(TARGET_FILE): devenv | ||||||
|  | 	@rm -f $(LOG_FILE) $@ | ||||||
|  | 	@CMD='"$(VSINSTALLDIR)/devenv.exe" ../../auth.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ | ||||||
|  | 	echo $$CMD; \ | ||||||
|  | 	if eval $$CMD; then \ | ||||||
|  | 		ls -l $(TARGET_CFG)/$(TARGET_FILE); \ | ||||||
|  | 	else \ | ||||||
|  | 		grep -a "ERROR:" $(LOG_FILE); \ | ||||||
|  | 	fi | ||||||
|  | 	 | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug*/Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug */Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile  | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -266,6 +266,9 @@ AC_OUTPUT([ | |||||||
| Makefile | Makefile | ||||||
| package/Makefile | package/Makefile | ||||||
| package/linux/Makefile | package/linux/Makefile | ||||||
|  | package/windows/Makefile | ||||||
|  | package/windows/authtokenclient_msm/Makefile | ||||||
|  | package/windows/authtokenclient_msi/Makefile | ||||||
| package/linux/CASA_auth_token_native.spec | package/linux/CASA_auth_token_native.spec | ||||||
| include/Makefile | include/Makefile | ||||||
| utilities/Makefile | utilities/Makefile | ||||||
| @@ -289,10 +292,13 @@ server/ApacheSupport/2.2/Makefile | |||||||
| server/ApacheSupport/2.2/linux/Makefile | server/ApacheSupport/2.2/linux/Makefile | ||||||
| client/Makefile | client/Makefile | ||||||
| client/linux/Makefile | client/linux/Makefile | ||||||
|  | client/windows/Makefile | ||||||
| client/mechanisms/Makefile | client/mechanisms/Makefile | ||||||
| client/mechanisms/pwd/Makefile | client/mechanisms/pwd/Makefile | ||||||
| client/mechanisms/pwd/linux/Makefile | client/mechanisms/pwd/linux/Makefile | ||||||
|  | client/mechanisms/pwd/windows/Makefile | ||||||
| client/mechanisms/krb5/Makefile | client/mechanisms/krb5/Makefile | ||||||
| client/mechanisms/krb5/linux/Makefile | client/mechanisms/krb5/linux/Makefile | ||||||
|  | client/mechanisms/krb5/windows/Makefile | ||||||
| ]) | ]) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,9 +20,9 @@ | |||||||
| # | # | ||||||
| ####################################################################### | ####################################################################### | ||||||
|  |  | ||||||
| SUBDIRS = linux | SUBDIRS =  $(TARGET_OS) | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux windows | ||||||
|  |  | ||||||
| EXTRA_DIST = | EXTRA_DIST = | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										39
									
								
								CASA-auth-token/non-java/package/windows/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								CASA-auth-token/non-java/package/windows/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = authtokenclient_msm authtokenclient_msi | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = authtokenclient_msm authtokenclient_msi | ||||||
|  |  | ||||||
|  | EXTRA_DIST = | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C authtokenclient_msm $@ | ||||||
|  | 	$(MAKE) -C authtokenclient_msi $@ | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d lib ]; then  rm -rf lib; fi | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
| @@ -0,0 +1,69 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2004 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = authtokenclient_msi.vdproj | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | PACKAGE = authtokenclient_msi | ||||||
|  | TARGET_FILE = $(PACKAGE).msi | ||||||
|  | LOG_FILE = $(PACKAGE).log | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall devenv | ||||||
|  |  | ||||||
|  | package: $(TARGET_FILE) | ||||||
|  |  | ||||||
|  | devenv: | ||||||
|  | 	@if ! test -x "$(VSINSTALLDIR)/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi | ||||||
|  |  | ||||||
|  | $(TARGET_FILE): devenv | ||||||
|  | 	@rm -f $(LOG_FILE) $@ | ||||||
|  | 	@CMD='"$(VSINSTALLDIR)/devenv.exe" ../../../auth.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ | ||||||
|  | 	echo $$CMD; \ | ||||||
|  | 	if eval $$CMD; then \ | ||||||
|  | 		ls -l $(TARGET_CFG)/$(TARGET_FILE); \ | ||||||
|  | 	else \ | ||||||
|  | 		grep -a "ERROR:" $(LOG_FILE); \ | ||||||
|  | 	fi | ||||||
|  | 	 | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug*/Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug */Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile  | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -0,0 +1,69 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2004 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Greg Richardson <grichardson@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = authtokenclient_msm.vdproj | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | PACKAGE = authtokenclient_msm | ||||||
|  | TARGET_FILE = $(PACKAGE).msm | ||||||
|  | LOG_FILE = $(PACKAGE).log | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall devenv | ||||||
|  |  | ||||||
|  | package: $(TARGET_FILE) | ||||||
|  |  | ||||||
|  | devenv: | ||||||
|  | 	@if ! test -x "$(VSINSTALLDIR)/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi | ||||||
|  |  | ||||||
|  | $(TARGET_FILE): devenv | ||||||
|  | 	@rm -f $(LOG_FILE) $@ | ||||||
|  | 	@CMD='"$(VSINSTALLDIR)/devenv.exe" ../../../auth.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ | ||||||
|  | 	echo $$CMD; \ | ||||||
|  | 	if eval $$CMD; then \ | ||||||
|  | 		ls -l $(TARGET_CFG)/$(TARGET_FILE); \ | ||||||
|  | 	else \ | ||||||
|  | 		grep -a "ERROR:" $(LOG_FILE); \ | ||||||
|  | 	fi | ||||||
|  | 	 | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug*/Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	rm -rf  Release/* Release Debug/* Debug */Release */Debug *.log *.suo | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -20,7 +20,11 @@ | |||||||
| # | # | ||||||
| ####################################################################### | ####################################################################### | ||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) | if LINUX | ||||||
|  | 	SUBDIRS = $(TARGET_OS) | ||||||
|  | else | ||||||
|  | 	SUBDIRS = | ||||||
|  | endif | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,7 +20,11 @@ | |||||||
| # | # | ||||||
| ####################################################################### | ####################################################################### | ||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) idenTokenProviders Svc | if LINUX | ||||||
|  | 	SUBDIRS = $(TARGET_OS) idenTokenProviders Svc | ||||||
|  | else | ||||||
|  | 	SUBDIRS =  | ||||||
|  | endif | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux idenTokenProviders Svc | DIST_SUBDIRS = linux idenTokenProviders Svc | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,7 +20,11 @@ | |||||||
| # | # | ||||||
| ####################################################################### | ####################################################################### | ||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) | if LINUX | ||||||
|  | 	SUBDIRS = $(TARGET_OS) | ||||||
|  | else | ||||||
|  | 	SUBDIRS = | ||||||
|  | endif | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,7 +20,11 @@ | |||||||
| # | # | ||||||
| ####################################################################### | ####################################################################### | ||||||
|  |  | ||||||
| SUBDIRS = $(TARGET_OS) | if LINUX | ||||||
|  | 	SUBDIRS = $(TARGET_OS) | ||||||
|  | else | ||||||
|  | 	SUBDIRS = | ||||||
|  | endif | ||||||
|  |  | ||||||
| DIST_SUBDIRS = linux | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user