
# This file should be configured before running `make'.
# Uncomment or change the values that are relevant for your OS.

# The preferred C compiler (by default use the OS-specific default value).
# For BSD/OS, FreeBSD, Linux (all flavors), NetBSD, OpenBSD the default
# compiler is GNU C. 
# (Note please the politically correct ordering by alphabet ! :-)
#
# Use GNU C even if it's not the default compiler
#
#CC=gcc
#
# Use the standard ANSI C compiler on HP-UX even if it's not default
#
#CC=c89

#
# The system-dependent flags for the C compiler
#
# Default

CFLAGS= -O2

# For GNU C
#
#CFLAGS= -O2
#
# For GNU C on HP-UX/PA-RISC 1.1
#
#CFLAGS= -O2 -Wa,-w
#
# For the standard ANSI C on HP-UX
#
#CFLAGS= +O2 -D_HPUX_SOURCE

#
# The system-dependent libraries
#
# Defalut (for the BSD-style OSes)

LIBS= -lm

# For SystemV (such as SCO, UnixWare, Solaris, but _NOT_ Linux or HP-UX)
#
#LIBS= -lm -lsocket

# After you have configured the Makefile, comment out the following
# two lines:
#warning: docs
#	@echo >&2
#	@echo "  You have to configure the Makefile before running make!" >&2
#	@echo "(or if you are lazy and hope that it will work as is run \`make all')">&2
#	@echo >&2

DOCS=README INSTALL INSTALL.hpux encodings/README

all:	t1asm ttf2pfa ttf2pt1 docs

docs: $(DOCS)

clean:
	rm -f t1asm ttf2pfa ttf2pt1 *.o

veryclean: clean
	rm -f $(DOCS)

t1asm: t1asm.c
	$(CC) $(CFLAGS) -o t1asm -DSTANDALONE t1asm.c $(LIBS)

ttf2pfa:	ttf2pfa.c ttf.h
	$(CC) $(CFLAGS) -o ttf2pfa ttf2pfa.c $(LIBS)

ttf2pt1.o: ttf2pt1.c ttf.h
	$(CC) $(CFLAGS) -c ttf2pt1.c

ttf2pt1:	ttf2pt1.o t1asm.o
	$(CC) $(CFLAGS) -o ttf2pt1 ttf2pt1.o t1asm.o $(LIBS)

README: README.html
	scripts/unhtml <README.html >README

encodings/README: encodings/README.html
	scripts/unhtml <encodings/README.html >encodings/README

INSTALL: INSTALL.html
	scripts/unhtml <INSTALL.html >INSTALL

INSTALL.hpux: INSTALL.hpux.html
	scripts/unhtml <INSTALL.hpux.html >INSTALL.hpux
