# Makefile for textolyx, by John Collins, Penn State University.
# (collins@phys.psu.edu).
# 22 Jan 1996.  

# =======> You will need to change the directories, flags and compiler
# =======> to suit your system.

# This Makefile uses makedepend to get the dependency information for
# include files.


# This should be your C++ compiler:
CXX = g++ -g

# Flags for where include files are to be found go here.
# The values work for my own system.
INCLUDEFLAGS = -I/usr/local/lib/g++-include/ -I./

# Flags used when compiling source codes
COMPILEFLAGS = ${INCLUDEFLAGS}
# Flags used when linking a program
LINKFLAGS = 

OBJS_textotex = textotex.o buffer.o errors.o sos.o texparse.o texpars2.o \
                utils.o
OBJS_textolyx = textolyx.o buffer.o errors.o sos.o texparse.o texpars2.o \
                utils.o
SRCS = textolyx.cc textotex.cc \
       buffer.cc errors.cc sos.cc texparse.cc texpars2.cc utils.cc


all: 	depend textolyx textotex

textotex: $(OBJS_textotex)
	$(CXX) $(LINKFLAGS) -o textotex $(OBJS_textotex)

textolyx: $(OBJS_textolyx)
	$(CXX) $(LINKFLAGS) -o textolyx $(OBJS_textolyx)

depend:
	makedepend ${INCLUDEFLAGS} $(SRCS)

%.o: %.cc
	$(CXX) $(COMPILEFLAGS) -c $< -o $@

# DO NOT DELETE THIS LINE -- make depend depends on it.

