Update copyright notices.
[make.git] / w32 / subproc / NMakefile
blob50e8fe1b0c348aecc600761b2a78a3abfcd265ce
1 # NOTE: If you have no `make' program at all to process this makefile, run
2 # `build.bat' instead.
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5 # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
6 # This file is part of GNU Make.
8 # GNU Make is free software; you can redistribute it and/or modify it under
9 # the terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 3 of the License, or (at your option) any later
11 # version.
13 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
16 # details.
18 # You should have received a copy of the GNU General Public License along with
19 # this program.  If not, see <http://www.gnu.org/licenses/>.
22 #       NMakefile for GNU Make (subproc library)
24 LIB = lib
25 CC = cl
26 MAKE = nmake
28 OUTDIR=.
29 MAKEFILE=NMakefile
31 CFLAGS_any = /nologo /MT /W4 /GX /Z7 /YX /D WIN32 /D WINDOWS32 /D _WINDOWS  -I. -I../include -I../../
32 CFLAGS_debug = $(CFLAGS_any) /Od /D _DEBUG /FR.\WinDebug\ /Fp.\WinDebug\subproc.pch /Fo.\WinDebug/
33 CFLAGS_release = $(CFLAGS_any) /O2 /FR.\WinRel\ /Fp.\WinRel\subproc.pch /Fo.\WinRel/
35 all: Release Debug
37 Release:
38         $(MAKE) /f $(MAKEFILE) OUTDIR=WinRel CFLAGS="$(CFLAGS_release)" WinRel/subproc.lib
39 Debug:
40         $(MAKE) /f $(MAKEFILE) OUTDIR=WinDebug CFLAGS="$(CFLAGS_debug)" WinDebug/subproc.lib
42 clean:
43         rmdir /s /q WinRel WinDebug
44         erase *.pdb
46 $(OUTDIR):
47         if not exist .\$@\nul mkdir .\$@
49 OBJS = $(OUTDIR)/misc.obj $(OUTDIR)/w32err.obj $(OUTDIR)/sub_proc.obj
51 $(OUTDIR)/subproc.lib: $(OUTDIR) $(OBJS)
52         $(LIB) -out:$@ @<<
53                 $(OBJS)
56 .c{$(OUTDIR)}.obj:
57         $(CC) $(CFLAGS) /c $<
59 $(OUTDIR)/misc.obj: misc.c proc.h
60 $(OUTDIR)/sub_proc.obj: sub_proc.c  ../include/sub_proc.h ../include/w32err.h proc.h
61 $(OUTDIR)/w32err.obj: w32err.c ../include/w32err.h