# Modified from automatic creation by Kevin Butler (butler@byu.edu)
# for Microsoft Visual C++ (11/22/96)
#
#######################################################################
# $Header: /b11/dmb/SWIG/SWIG1.0/RCS/Makefile.in,v 1.1 1996/08/12 01:55:02 dmb Exp dmb $
# Simplified Wrapper and Interface Generator (SWIG)
# 
# Makefile for version 1.1
# Dave Beazley
# March 12, 1997
#
# This makefile is now mostly constructed by ./configure.
#
# $Log: Makefile.in,v $
# Revision 1.1  1996/08/12 01:55:02  dmb
# Initial revision
#
#######################################################################

#.KEEP_STATE:


!include <..\Win\make_win.in>


srcdir = .



#SWIG_LIB = $(prefix)/swig_lib

########################################################################
# Normally, you shouldn't have to change anything below this point     #
########################################################################

LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj emit.obj newdoc.obj ascii.obj \
          html.obj latex.obj cplus.obj lang.obj hash.obj sstring.obj wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj

LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
	  newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
          sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx

LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIBNAME      = ..\libswig.lib
INCLUDE  = -I../Include -I$(STD_INC)
CFLAGS   = -Zi -nologo -DSWIG_LIB="\"$(SWIG_LIB)\"" -DSWIG_CC="\"$(CC)\""  -DMSDOS -DSTDC_HEADERS=1 -DHAVE_LIBDL=1 $(SWIG_OPTS)
LD_FLAGS    =  -VERBOSE


#
# Rules for creation of a .obj file from .cxx
.SUFFIXES: .cxx
.cxx.obj:
	$(CC) $(INCLUDE) $(CFLAGS) -c -o $*.obj $<

all:    $(LIBNAME) 

$(LIBNAME): parser.obj $(LIBOBJS) 
	@echo "Building library"
	@$(LD) $(LD_FLAGS) -out:$(LIBNAME) $(LIBOBJS) parser.obj 

parser.obj: parser.cxx $(LIBHEADERS)
	$(CC) $(INCLUDE) $(CFLAGS) parser.cxx -c -o parser.obj

parser.cxx: $(PARSER)
	@echo "Must rebuild the parser with yacc"

parser::  
	@cp y.tab.c.bison parser.cxx
	@cp y.tab.h.bison parser.h
	@cp y.tab.h.bison y.tab.h
	$(CC) $(CFLAGS) parser.cxx -c -o parser.obj

main.obj: main.cxx 
scanner.obj: scanner.cxx 
wrapper.obj: wrapper.cxx 
include.obj: include.cxx 
types.obj: types.cxx 
emit.obj: emit.cxx 
cplus.obj: cplus.cxx 
misc.obj: misc.cxx 
hash.obj: hash.cxx 
sstring.obj: sstring.cxx 
getopt.obj: getopt.cxx 
wrapfunc.obj: wrapfunc.cxx 
swigmain.obj: swigmain.cxx 
symbol.obj: symbol.cxx 
parms.obj: parms.cxx 
newdoc.obj: newdoc.cxx 
lang.obj: lang.cxx 
comment.obj: comment.cxx 
latex.obj: latex.cxx 
ascii.obj: ascii.cxx 
html.obj: html.cxx 
typemap.obj: typemap.cxx
naming.obj: naming.cxx

Makefile:	$(srcdir)/Makefile.in ../config.status
		(cd ..; CONFIG_FILES=SWIG/Makefile $(SHELL) config.status)

.PRECIOUS:	Makefile

clean::
	@del *.obj 
	@del $(LIBNAME)





syntax highlighted by Code2HTML, v. 0.9.1