root/morphix/trunk/fbmngplay-0.5a/fbmngplay-0.5a/Makefile

Revision 2, 1.4 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

Line 
1 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
2 # This Makefile.in is free software; the Free Software Foundation
3 # gives unlimited permission to copy and/or distribute it,
4 # with or without modifications, as long as this notice is preserved.
5
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
8 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9 # PARTICULAR PURPOSE.
10
11 ARCH     = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)
12 SHELL    = /bin/sh
13 CC       = gcc
14 STRIP    = strip
15
16 # Triggering lib64 path from spec file.
17 ifeq ($(PREFIX)x,x)
18 PREFIX   = /usr
19 endif
20 ifeq ($(LIB)x,x)
21 LIB      = lib
22 endif
23 LIBDIR   = $(PREFIX)/$(LIB)
24
25 PROGRAMS = fbmngplay
26 OBJECTS  = fbmngplay.o messages.o mng.o console.o
27
28 LDFLAGS  =  -L$(LIBDIR)
29 LIBSS    = $(LIBDIR)/libmng.a $(LIBDIR)/libz.a -lm
30 LIBSD    = -lmng -lz -lm
31
32 CFLAGS   = -O2 -Wall
33 COMPILE  = $(CC) $(CFLAGS)
34 LINKS    = $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@
35 LINKD    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
36
37 all: $(PROGRAMS) strip
38
39 .SUFFIXES:
40 .SUFFIXES: .S .c .o .s
41
42 .s.o:
43         $(COMPILE) -c $<
44
45 .S.o:
46         $(COMPILE) -c $<
47
48 mostlyclean:
49         -rm -f *.o core
50 clean:  mostlyclean
51         -rm -f fbmngplay
52
53 fbmngplay: $(OBJECTS)
54         @rm -f fbmngplay
55         $(LINKD) $(LDFLAGS) $(OBJECTS) $(LIBSD)
56
57 strip: $(PROGRAMS)
58         $(STRIP) -s $(PROGRAMS)
59
60 .PHONY: mostlyclean clean fbmngplay all strip
Note: See TracBrowser for help on using the browser.