From 5606f67a26f876bc83e3928a41e7919d9aea2ca8 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Tue, 12 Aug 2003 08:22:43 +0000 Subject: add fbmngplay and fbtruetype --- fbtruetype/Makefile | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 fbtruetype/Makefile (limited to 'fbtruetype/Makefile') diff --git a/fbtruetype/Makefile b/fbtruetype/Makefile new file mode 100644 index 0000000..b99e07b --- /dev/null +++ b/fbtruetype/Makefile @@ -0,0 +1,66 @@ +# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/) +SHELL = /bin/sh +CC = gcc +STRIP = strip + +# Triggering lib64 path from spec file. +PREFIX ?= $(prefix)/usr +LIB ?= lib + +LIBDIR = /usr/$(LIB) +bindir = $(PREFIX)/bin + +PROGRAMS = fbtruetype fbtruetype.static +OBJECTS = fbtruetype.o messages.o console.o ttf.o luxisri.o + +LDFLAGS = -L$(LIBDIR) +LIBSS = $(LIBDIR)/libfreetype.a $(LIBDIR)/libz.a -lm +LIBSD = -lfreetype -lm + +CFLAGS = -O2 -Wall -I/usr/include/freetype2 +COMPILE = $(CC) $(CFLAGS) +LINKS = $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ +LINKD = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ + +all: $(PROGRAMS) strip + +.SUFFIXES: +.SUFFIXES: .S .c .o .s + +.s.o: + $(COMPILE) -c $< + +.S.o: + $(COMPILE) -c $< + +mostlyclean: + -rm -f *.o core +clean: mostlyclean + -rm -f fbtruetype fbtruetype.static + +install: + install -m 755 -d $(bindir) + install -m 755 fbtruetype.static $(prefix)/bin + install -m 755 fbtruetype $(bindir) + +fbtruetype: $(OBJECTS) + @rm -f fbtruetype + $(LINKD) $(LDFLAGS) $(OBJECTS) $(LIBSD) +fbtruetype.static: $(OBJECTS) + @rm -f fbtruetype.static + $(LINKS) $(LDFLAGS) $(OBJECTS) $(LIBSS) + +strip: $(PROGRAMS) + $(STRIP) -s $(PROGRAMS) + +.PHONY: mostlyclean clean fbtruetype fbtruetype.static all strip -- cgit v1.2.1