aboutsummaryrefslogtreecommitdiffstats
path: root/fbmngplay/Makefile
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-08-12 08:22:43 +0000
committerFlorent Villard <warly@mandriva.com>2003-08-12 08:22:43 +0000
commit5606f67a26f876bc83e3928a41e7919d9aea2ca8 (patch)
treebcbffafd8ab4884e363da50c0f8b32751b886ae0 /fbmngplay/Makefile
parent0bfd2d68ceaa132a57abc8dec8b67edc8e7e37ed (diff)
downloadbootsplash-5606f67a26f876bc83e3928a41e7919d9aea2ca8.tar
bootsplash-5606f67a26f876bc83e3928a41e7919d9aea2ca8.tar.gz
bootsplash-5606f67a26f876bc83e3928a41e7919d9aea2ca8.tar.bz2
bootsplash-5606f67a26f876bc83e3928a41e7919d9aea2ca8.tar.xz
bootsplash-5606f67a26f876bc83e3928a41e7919d9aea2ca8.zip
add fbmngplay and fbtruetype
Diffstat (limited to 'fbmngplay/Makefile')
-rw-r--r--fbmngplay/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/fbmngplay/Makefile b/fbmngplay/Makefile
new file mode 100644
index 0000000..ccde3dd
--- /dev/null
+++ b/fbmngplay/Makefile
@@ -0,0 +1,69 @@
+# 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.
+ifeq ($(PREFIX)x,x)
+PREFIX = $(prefix)/usr
+endif
+ifeq ($(LIB)x,x)
+LIB = lib
+endif
+LIBDIR = /usr/$(LIB)
+bindir = $(PREFIX)/bin
+
+PROGRAMS = fbmngplay fbmngplay.static
+OBJECTS = fbmngplay.o messages.o mng.o console.o
+
+LDFLAGS = -L$(LIBDIR)
+LIBSS = $(LIBDIR)/libmng.a $(LIBDIR)/libz.a $(LIBDIR)/libjpeg.a -lm
+LIBSD = -lmng -lz -lm
+
+CFLAGS = -O2 -Wall
+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 fbmngplay fbmngplay.static
+
+install:
+ install -m 755 -d $(bindir)
+ install -m755 fbmngplay.static $(prefix)/bin
+ install -m755 fbmngplay $(bindir)
+
+fbmngplay: $(OBJECTS)
+ @rm -f fbmngplay
+ $(LINKD) $(LDFLAGS) $(OBJECTS) $(LIBSD)
+fbmngplay.static: $(OBJECTS)
+ @rm -f fbmngplay.static
+ $(LINKS) $(LDFLAGS) $(OBJECTS) $(LIBSS)
+
+strip: $(PROGRAMS)
+ $(STRIP) -s $(PROGRAMS)
+
+.PHONY: mostlyclean clean fbmngplay fbmngplay.static all strip