mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
4f0a28d655
Submitted by: kevlo, modified by me to respect CFLAGS.
33 lines
667 B
Plaintext
33 lines
667 B
Plaintext
--- Makefile.orig Tue Feb 15 04:41:27 2000
|
|
+++ Makefile Tue Jan 30 22:01:34 2001
|
|
@@ -19,21 +19,22 @@
|
|
|
|
CC = gcc
|
|
INSTALL = install
|
|
-CFLAGS =
|
|
+CFLAGS += -I${LOCALBASE}/include
|
|
LIBS = -lttf -lm
|
|
-INCLUDEDIR =
|
|
+LIBSDIR = -L${LOCALBASE}/lib
|
|
|
|
-prefix = /usr
|
|
-BINDIR = $(prefix)/bin
|
|
-ETCDIR = /etc/chinese/
|
|
+
|
|
+PREFIX?= /usr/local
|
|
+BINDIR = $(PREFIX)/bin
|
|
+ETCDIR = $(PREFIX)/etc
|
|
|
|
all: ttf2psm
|
|
|
|
%.o : %.c
|
|
- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
|
|
+ $(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
ttf2psm: $(OBJS)
|
|
- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
|
|
+ $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
|
|
|
|
install: all bg5ps bg5ps.conf
|
|
mkdir -p $(ETCDIR)
|