| 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 |
SHELL = /bin/sh |
| 12 |
CC = gcc |
| 13 |
|
| 14 |
SOURCES = fbmngplay.c |
| 15 |
PROGRAMS = fbmngplay fbmngplay.static |
| 16 |
OBJECTS = fbmngplay.o messages.o mng.o console.o |
| 17 |
|
| 18 |
LDFLAGS = -L/usr/lib |
| 19 |
LIBSS = /usr/lib/libmng-mini.a /usr/lib/libz.a -lm |
| 20 |
LIBSD = -lmng -lz -lm |
| 21 |
|
| 22 |
CFLAGS = -Os -Wall -Wmissing-prototypes -Wstrict-prototypes -D_REENTRANT |
| 23 |
COMPILE = $(CC) $(CFLAGS) |
| 24 |
LINKS = $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ |
| 25 |
LINKD = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ |
| 26 |
|
| 27 |
all: $(PROGRAMS) |
| 28 |
strip -s $(PROGRAMS) |
| 29 |
.SUFFIXES: |
| 30 |
.SUFFIXES: .S .c .o .s |
| 31 |
|
| 32 |
.s.o: |
| 33 |
$(COMPILE) -c $< |
| 34 |
|
| 35 |
.S.o: |
| 36 |
$(COMPILE) -c $< |
| 37 |
|
| 38 |
mostlyclean: |
| 39 |
-rm -f *.o core |
| 40 |
clean: mostlyclean |
| 41 |
-rm -f fbmngplay fbmngplay.static |
| 42 |
|
| 43 |
fbmngplay: $(OBJECTS) |
| 44 |
@rm -f fbmngplay |
| 45 |
$(LINKD) $(LDFLAGS) $(OBJECTS) $(LIBSD) |
| 46 |
fbmngplay.static: $(OBJECTS) |
| 47 |
@rm -f fbmngplay.static |
| 48 |
$(LINKS) $(LDFLAGS) $(OBJECTS) $(LIBSS) |
| 49 |
|
| 50 |
.PHONY: mostlyclean clean fbmngplay fbmngplay.static all |