2001-01-30 14:18:07 +00:00
|
|
|
--- Makefile.orig Tue Feb 15 04:41:27 2000
|
|
|
|
+++ Makefile Tue Jan 30 22:01:34 2001
|
|
|
|
@@ -19,21 +19,22 @@
|
|
|
|
|
|
|
|
CC = gcc
|
2000-11-03 12:26:53 +00:00
|
|
|
INSTALL = install
|
2001-01-30 14:18:07 +00:00
|
|
|
-CFLAGS =
|
|
|
|
+CFLAGS += -I${LOCALBASE}/include
|
2000-11-03 12:26:53 +00:00
|
|
|
LIBS = -lttf -lm
|
|
|
|
-INCLUDEDIR =
|
2001-01-30 14:18:07 +00:00
|
|
|
+LIBSDIR = -L${LOCALBASE}/lib
|
1999-12-24 04:10:22 +00:00
|
|
|
|
2000-11-03 12:26:53 +00:00
|
|
|
-prefix = /usr
|
2001-01-30 14:18:07 +00:00
|
|
|
-BINDIR = $(prefix)/bin
|
2000-11-03 12:26:53 +00:00
|
|
|
-ETCDIR = /etc/chinese/
|
2001-01-30 14:18:07 +00:00
|
|
|
+
|
|
|
|
+PREFIX?= /usr/local
|
|
|
|
+BINDIR = $(PREFIX)/bin
|
|
|
|
+ETCDIR = $(PREFIX)/etc
|
1999-12-24 04:10:22 +00:00
|
|
|
|
2000-11-03 12:26:53 +00:00
|
|
|
all: ttf2psm
|
1998-06-26 14:19:47 +00:00
|
|
|
|
2001-01-30 14:18:07 +00:00
|
|
|
%.o : %.c
|
|
|
|
- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
|
|
|
|
+ $(CC) -c $(CFLAGS) $< -o $@
|
2000-11-03 12:26:53 +00:00
|
|
|
|
|
|
|
ttf2psm: $(OBJS)
|
|
|
|
- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
|
2001-01-30 14:18:07 +00:00
|
|
|
+ $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
|
2000-11-03 12:26:53 +00:00
|
|
|
|
|
|
|
install: all bg5ps bg5ps.conf
|
|
|
|
mkdir -p $(ETCDIR)
|