37 lines
934 B
Text
37 lines
934 B
Text
$NetBSD: patch-aa,v 1.4 2018/05/05 03:56:48 minskim Exp $
|
|
|
|
--- Makefile.orig Wed Nov 6 23:28:44 2002
|
|
+++ Makefile
|
|
@@ -1,25 +1,22 @@
|
|
-FREETYPE_BASE=/usr/include/freetype2
|
|
-FREETYPE_INCL=-I$(FREETYPE_BASE)/.
|
|
-FREETYPE_LIB=/usr/lib/libfreetype.so
|
|
-
|
|
-DEBUG=-ggdb
|
|
-CXX=g++
|
|
-CXXFLAGS=-Wall -pedantic $(FREETYPE_INCL) $(DEBUG)
|
|
+FREETYPE_INCL=`pkg-config --cflags freetype2`
|
|
+FREETYPE_LIB=`pkg-config --libs freetype2`
|
|
|
|
-LDFLAGS=$(FREETYPE_LIB) $(DEBUG)
|
|
+CXXFLAGS+=$(FREETYPE_INCL)
|
|
+
|
|
+LDFLAGS+=$(FREETYPE_LIB)
|
|
|
|
.PHONY: clean
|
|
|
|
all: ttmkfdir
|
|
|
|
.cpp.o:
|
|
- libtool --mode=compile $(CXX) $(CXXFLAGS) -o $@ -c $^
|
|
+ libtool --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $^
|
|
|
|
ttmkfdir: ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o
|
|
libtool --mode=link $(CXX) -o $@ $^ $(LDFLAGS)
|
|
|
|
parser.cpp: encoding.l
|
|
- flex -i -8 -o$@ $<
|
|
+ lex -i -8 -o$@ $<
|
|
|
|
clean:
|
|
-rm -f *.o *~ ttmkfdir core parser.cpp
|