# @(#)makefile 97/07/27 for wspook
#
#   Ciphergram Solver for Windows v1.0
#   Copyright (C) 1997  K. L. Dunn
#
#   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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#   Author: K. L. Dunn    email: k.l.dunn@ieee.org

LOCALCFLAGS=-DNDEBUG

all:   cfgexe  wspook.exe   cfgcln

#wspook.exe: wspook.obj spook.obj wspook.def wspook.res   
#	G:\BC45\BIN\tlink32.exe @&&|
#-Tpe -aa -c  G:\BC45\BIN\..\lib\c0w32+
#wspook.obj spook.obj
#wspook.exe
#-x
#G:\BC45\BIN\..\lib\import32 G:\BC45\BIN\..\lib\cw32
#|,&&|
#EXETYPE WINDOWS
#CODE PRELOAD MOVEABLE DISCARDABLE
#DATA PRELOAD MOVEABLE MULTIPLE
#|,wspook.res

wspook.exe: wspook.obj spook.obj wspook.def wspook.res   
	G:\BC45\BIN\tlink32.exe @&&|
-Tpe -aa -c  G:\BC45\BIN\..\lib\c0w32+
wspook.obj spook.obj
wspook.exe
-x
G:\BC45\BIN\..\lib\import32 G:\BC45\BIN\..\lib\cw32
|,wspook.def,wspook.res

wspook.obj : wspook.c wspook.h
     G:\BC45\BIN\bcc32.exe $(LOCALCFLAGS) wspook.c

spook.obj : spook.c
     G:\BC45\BIN\bcc32.exe $(LOCALCFLAGS) spook.c

wspook.res : wspook.rc wspook.h wspook.ico
     G:\BC45\BIN\brcc32.exe -r -iG:\BC45\BIN\..\include wspook.rc

cfgexe:
 @copy &&|
-IG:\BC45\BIN\..\include
-c -W -3 -d -k-
-w   
| bcc32.cfg >NUL

cfgcln:
 @del bcc32.cfg

clean:	cfgcln
	del wspook.res
	del wspook.obj
	del spook.obj
	del *.bak
