# Makefile for wp2latex

CC = cc

PROG = wp2latex
PROGSRC = wp2latex.c
PROGOBJ = wp2latex.o

# Select the one appropriate to your setup
# remember to remove the -DHAVE_P2C if p2c is not installed
#CFLAGS = -O -fstrength-reduce -DHAVE_P2C
# generic UNIX cc
CFLAGS = -O -DDEBUG -temp=.
# Xenix cross-compiling to DOS
#CFLAGS = -dos -M2le -Ox -CSON -F 3000 -DHAVE_P2C

# library selection
# select p2clib.o if you have deleted HAVE_P2C above
#LIB1 = -lp2c
LIB1 = p2clib.o
LIBS = $(LIB1) -lm

# ld flags
# Xenix cross-compiling to DOS
#LFLAGS = -dos
# SUN's
LFLAGS = -Bstatic

$(PROG) : $(PROGOBJ) $(LIB1)
	$(CC) $(LFLAGS) -o $(PROG) $(PROGOBJ) $(LIBS)

clean:
	rm -f $(PROGOBJ) $(LIB1) $(PROG) core
