#* ***** BEGIN LICENSE BLOCK ***** # Version: CDDL 1.0 # # The contents of this file are subject to the COMMON DEVELOPMENT AND # DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy of # the License at http://www.sun.com/cddl/ # # Software distributed under the License is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License # for the specific language governing rights and limitations under the # License. # # The Original Code is # "netlabs.org Open Source Archive Administrator/Client" # # The Original Distribution Package is named # "netlabs.org Open Source Archive Administrator/Client" # and maintained and distributed by the Initial Developer # and/or netlabs.org only. # # In addition to the CDDL the following applies: # If you modify the Original Code, you may distribute it only # as a part of a distribution package where # - the name of the package, created directories or # OS2.INI entries do not contain any of the terms # - "netlabs.org Open Source Archive" # - "NOSA" # - "NOSAC" # - "NOSAADM" # - neither netlabs.org nor the Initial Developer is stated as # the vendor or originator of the resulting Distribution Package, # which contains the Modified Code. # # The Initial Developer of the Original Code is # netlabs.org: Christian Langanke . # Portions created by the Initial Developer are Copyright (C) 1999-2008 # the Initial Developer. All Rights Reserved. # # Contributor(s): # # ***** END LICENSE BLOCK ***** */ # --- include main definitions BASEDIR=. PRJINC=$(BASEDIR)\config\project.in !include $(BASEDIR)\config\rules.in # --- module list MODULELIST=nosac nosaadm wis # --- define help HELPINF=bin\help.inf HELPANEL=Build the installation package # --- default targets # - generic default target for building a module !ifdef MAINMODULE VERBOSE: @cd $(MAINMODULE) @$(MAKE) /nologo $(MAINARG) @echo. @cd $(MAKEDIR) QUIET: @cd src\$(MAINMODULE) @$(MAKE) /nologo $(MAINARG) @cd $(MAKEDIR) !endif # --- inspecific pseudotargets, control the build type # by defining env vars or NMAKE symbols DEBUG and/or NDEBUG # NDEBUG overrides DEBUG, default is NDEBUG HELP: @start view $(HELPINF) $(HELPANEL) ALL: @for %%a in ($(MODULELIST)) do @$(MAKE) /nologo $(MAINARG) MAINMODULE=%%a MAINARG=ALL NOSAC: @$(MAKE) /nologo $(MAINARG) MAINMODULE=nosac MAINARG=ALL NOSAADM: @$(MAKE) /nologo $(MAINARG) MAINMODULE=nosaadm MAINARG=ALL RUN: ALL @$(MAKE) /nologo $(MAINARG) MAINMODULE=wis MAINARG=RUN CALLED=1 CLEAN: @echo cleaning up directories ... @for %%a in ($(DIRSTOCLEAN)) do @kd %%a >NUL # --- build type specific pseudotargets REL: @for %%a in ($(MODULELIST) wis) do @$(MAKE) /nologo $(MAINARG) MAINMODULE=%%a NDEBUG=1 MAINARG=ALL DEB: @for %%a in ($(MODULELIST) wis) do @$(MAKE) /nologo $(MAINARG) MAINMODULE=%%a DEBUG=1 MAINARG=ALL RUNREL: REL @$(MAKE) /nologo $(MAINARG) MAINMODULE=wis MAINARG=RUN NDEBUG=1 CALLED=1 RUNDEB: DEB @$(MAKE) /nologo $(MAINARG) MAINMODULE=wis MAINARG=RUN DEBUG=1 CALLED=1