# # $Log: Makefile,v $ # Revision 1.4 2000/02/14 20:41:27 platin # SMALL FIX... # # Revision 1.3 2000/02/14 20:40:29 platin # # Add install entry... # # Revision 1.2 2000/02/14 18:16:53 platin # # Modify ttf2psm.c and add gb_in.c/gbtou8.c to make # ttf2psm support multibyte char rendering. At this time, # GB and BIG5 aupport were added. # # OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o CC = gcc INSTALL = install CFLAGS += -I${LOCALBASE}/include/freetype1 -I${LOCALBASE}/include LIBS = -lttf -lm LIBSDIR = -L${LOCALBASE}/lib PREFIX?= /usr/local BINDIR = $(PREFIX)/bin ETCDIR = $(PREFIX)/etc all: ttf2psm %.o : %.c $(CC) -c $(CFLAGS) $< -o $@ ttf2psm: $(OBJS) $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS) install: all bg5ps bg5ps.conf mkdir -p $(ETCDIR) mkdir -p $(BINDIR) $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf $(INSTALL) -m755 bg5ps $(BINDIR) $(INSTALL) -m755 ttf2psm $(BINDIR) clean: rm -rf *.o core ttf2psm *~