# /*
# ================================================================================
#                         Texinfo converting Tools
#                          Release 1.00  28.03.97
#                        (c) 1996 by Andreas Kaiser
#                     (c) 1997 by Karl Heinz Marbaise
# ================================================================================
#
# Discription:
#    makefile to compile str.a
#
# Authors:
#    Andreas Kaiser
#    Karl Heinz Marbaise
#
# e-mail:
#    Internet: KHMarbaise@p69.ks.fido.de
#    Fido-net: 2:2452/117.69
#
# Bugs, question:
#    to above e-mail adress.
#
# Register:
#    Please send a e-mail to above adress to register.
#    (include the release you want to register)
#    This registration should be done to let me
#    know how many people using these tools and
#    if it is worth to invest more time in continuing
#    development these tools or let the first release
#    of them be the last.
#    That is the only reason to make a registration.
#    I think a e-mail is not to much, isn't it?
#
# License:
#    The "Texinfo converting tools" are 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, or (at your option)
#    any later version.
#
#    The "Texinfo converting tools" are distributed in the hope that
#    they 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 the "Texinfo converting tools" ; see the file COPYING.
#    If not, write to the:
#    Free Software Foundation,
#    59 Temple Place - Suite 330,
#    Boston, MA 02111-1307, USA.
#
#    See \texicvt1.00\COPYING for details.
#
# ================================================================================
# */
#
# $Id: MAKEFILE 1.3 1997/03/30 15:08:45 KHM Exp $
#
ifeq ($(OS),linux)
O=.o
EXE=
else
O=.o
EXE=.exe
endif
#
.SUFFIXES:
.SUFFIXES: .l .y .cc .h
#
vpath %$(O) .
vpath %.c   .
vpath %.cc  .
vpath %.h   .
vpath %.l   .
vpath %.y   .
#
YACC = bison
YFLAGS = -l -d -v
LEX = flex
ifdef DEBUG
LFLAGS = -p -d -8 -L -s
else
LFLAGS = -p -8 -L -s -d
endif
CC = gcc
##
ifdef DEBUG
CFLAGS = -Wall -g -DDEBUG -I.. -I.
LDFLAGS += -g
else
CFLAGS = -O2 -s -I.. -I.
endif
##
ifeq ($(OS),linux)
LIBNAME=libstr.a
LDLIBS	+= -Lgen -lg++ -lstdc++ -lstr
else
LIBNAME=str.a
LDLIBS	+= -Lgen -lgpp -lstdcpp -lstr
endif

#
%$(O): %.cpp
	$(CC) $(CFLAGS) -c $<

#
#
OBJSTRLIB=  strnavlm$(O) strnmap$(O) strxcvhm$(O) \
	    strxcmap$(O) strxeavl$(O) strxemap$(O) \
	    strsavlm$(O) strsmap$(O) xi_slbag$(O) \
	    xi_bag$(O) xisllist$(O)

#
.PHONY: all clean lexer

all: $(LIBNAME)


clean:
	-rm *$(O)
	-rm str.a

$(LIBNAME): $(OBJSTRLIB)
	-rm $(LIBNAME)
	ar -srv $(LIBNAME) *.o


######## These dependencies are automaticly generated
######## with GCC -MD *.cpp
strnavlm.o: strnavlm.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strnmap.o: strnmap.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strsavlm.o: strsavlm.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strsmap.o: strsmap.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strxcmap.o: strxcmap.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strxcvhm.o: strxcvhm.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strxeavl.o: strxeavl.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
strxemap.o: strxemap.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
xisllist.o: xisllist.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
xi_bag.o: xi_bag.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h
xi_slbag.o: xi_slbag.cpp ../info.h xi_slbag.h xi_bag.h xi_defs.h \
 xisllist.h strxeavl.h strxemap.h strdefs.h strxcvhm.h strxcmap.h \
 strnavlm.h strnmap.h strsavlm.h strsmap.h


