Home | History | Annotate | Line # | Download | only in subproc
NMakefile revision 1.1
      1  1.1  christos # NOTE: If you have no `make' program at all to process this makefile, run
      2  1.1  christos # `build.bat' instead.
      3  1.1  christos #
      4  1.1  christos # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      5  1.1  christos # 2006 Free Software Foundation, Inc.
      6  1.1  christos # This file is part of GNU Make.
      7  1.1  christos #
      8  1.1  christos # GNU Make is free software; you can redistribute it and/or modify it under the
      9  1.1  christos # terms of the GNU General Public License as published by the Free Software
     10  1.1  christos # Foundation; either version 2, or (at your option) any later version.
     11  1.1  christos #
     12  1.1  christos # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     13  1.1  christos # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     14  1.1  christos # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     15  1.1  christos #
     16  1.1  christos # You should have received a copy of the GNU General Public License along with
     17  1.1  christos # GNU Make; see the file COPYING.  If not, write to the Free Software
     18  1.1  christos # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     19  1.1  christos 
     20  1.1  christos #
     21  1.1  christos #       NMakefile for GNU Make (subproc library)
     22  1.1  christos #
     23  1.1  christos LIB = lib
     24  1.1  christos CC = cl
     25  1.1  christos MAKE = nmake
     26  1.1  christos 
     27  1.1  christos OUTDIR=.
     28  1.1  christos MAKEFILE=NMakefile
     29  1.1  christos 
     30  1.1  christos CFLAGS_any = /nologo /MT /W4 /GX /Z7 /YX /D WIN32 /D WINDOWS32 /D _WINDOWS  -I. -I../include -I../../
     31  1.1  christos CFLAGS_debug = $(CFLAGS_any) /Od /D _DEBUG /FR.\WinDebug\ /Fp.\WinDebug\subproc.pch /Fo.\WinDebug/
     32  1.1  christos CFLAGS_release = $(CFLAGS_any) /O2 /FR.\WinRel\ /Fp.\WinRel\subproc.pch /Fo.\WinRel/
     33  1.1  christos 
     34  1.1  christos all: Release Debug
     35  1.1  christos 
     36  1.1  christos Release:
     37  1.1  christos 	$(MAKE) /f $(MAKEFILE) OUTDIR=WinRel CFLAGS="$(CFLAGS_release)" WinRel/subproc.lib
     38  1.1  christos Debug:
     39  1.1  christos 	$(MAKE) /f $(MAKEFILE) OUTDIR=WinDebug CFLAGS="$(CFLAGS_debug)" WinDebug/subproc.lib
     40  1.1  christos 
     41  1.1  christos clean:
     42  1.1  christos 	rmdir /s /q WinRel WinDebug
     43  1.1  christos 	erase *.pdb
     44  1.1  christos 
     45  1.1  christos $(OUTDIR):
     46  1.1  christos 	if not exist .\$@\nul mkdir .\$@
     47  1.1  christos 
     48  1.1  christos OBJS = $(OUTDIR)/misc.obj $(OUTDIR)/w32err.obj $(OUTDIR)/sub_proc.obj
     49  1.1  christos 
     50  1.1  christos $(OUTDIR)/subproc.lib: $(OUTDIR) $(OBJS)
     51  1.1  christos 	$(LIB) -out:$@ @<<
     52  1.1  christos 		$(OBJS)
     53  1.1  christos <<
     54  1.1  christos 
     55  1.1  christos .c{$(OUTDIR)}.obj:
     56  1.1  christos 	$(CC) $(CFLAGS) /c $<
     57  1.1  christos 
     58  1.1  christos $(OUTDIR)/misc.obj: misc.c proc.h
     59  1.1  christos $(OUTDIR)/sub_proc.obj: sub_proc.c  ../include/sub_proc.h ../include/w32err.h proc.h
     60  1.1  christos $(OUTDIR)/w32err.obj: w32err.c ../include/w32err.h
     61