duke@435: # mikael@4153: # Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. duke@435: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@435: # duke@435: # This code is free software; you can redistribute it and/or modify it duke@435: # under the terms of the GNU General Public License version 2 only, as duke@435: # published by the Free Software Foundation. duke@435: # duke@435: # This code is distributed in the hope that it will be useful, but WITHOUT duke@435: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@435: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@435: # version 2 for more details (a copy is included in the LICENSE file that duke@435: # accompanied this code). duke@435: # duke@435: # You should have received a copy of the GNU General Public License version duke@435: # 2 along with this work; if not, write to the Free Software Foundation, duke@435: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@435: # trims@1907: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: # or visit www.oracle.com if you need additional information or have any trims@1907: # questions. duke@435: # duke@435: # duke@435: duke@435: DEFAULTACTIONS=clean post_update create duke@435: duke@435: default:: $(SUBDIRS) duke@435: duke@435: !ifndef DIR duke@435: DIR=. duke@435: !endif duke@435: erikj@3518: !ifndef CXX erikj@3518: CXX=cl.exe duke@435: !endif duke@435: duke@435: duke@435: !ifdef SUBDIRS dcubed@3990: # \ is used below because $(MAKE) is nmake here, which expects Windows paths duke@435: $(SUBDIRS): FORCE duke@435: @if not exist $@ mkdir $@ dcubed@3990: @if not exist $@/local.make echo # Empty > $@/local.make dcubed@3990: @echo nmake $(ACTION) in $(DIR)/$@ dcubed@3990: cd $@ && $(MAKE) -NOLOGO -f $(WorkSpace)\make\windows\makefiles\$@.make $(ACTION) DIR=$(DIR)\$@ BUILD_FLAVOR=$(BUILD_FLAVOR) duke@435: !endif duke@435: duke@435: # Creates the needed directory duke@435: create:: duke@435: !if "$(DIR)" != "." duke@435: @echo mkdir $(DIR) duke@435: !endif duke@435: duke@435: # Epilog to update for generating derived files duke@435: post_update:: duke@435: duke@435: # Removes scrap files duke@435: clean:: FORCE duke@435: -@rm -f *.OLD *.publish duke@435: duke@435: # Remove all scrap files and all generated files duke@435: pure:: clean duke@435: -@rm -f *.OLD *.publish duke@435: duke@435: $(DEFAULTACTIONS) $(ACTIONS):: duke@435: !ifdef SUBDIRS duke@435: @$(MAKE) -nologo ACTION=$@ DIR=$(DIR) duke@435: !endif duke@435: duke@435: FORCE: duke@435: duke@435: