1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#
# This is Makefile, part of the source code for
#
# BMV version 1.1
# copyright by Jan Kybic, 19th January 1995
#
# changed by W.Bader <wbader@csee.lehigh.edu>
#
# Jan Kybic, Prosecka 681, Praha 9, Czech Republic, <kybic@earn.cvut.cz>
#
# BMV is a very simple viewer of images in the pbm(5)-raw format
# and front end for GhostScript
# based on Svgalib library for Linux
#
# BMV is distributed under GNU GPL (General Public License),
# you can obtain a copy from many FTP sites if you are interested in details
#
#
#
#
#
# This Makefile is really a simple one, but no complexity is needed.
# You must be root and you must be in the source code directory.
# Type 'make bmv' or 'make all' if you want to build BMV.
# After you have tried it, type 'make install' and it sets the sticky bit
# on it and moves the binary to DESTDIR
# If you enter 'make clean' it removes the object files
SOURCES=bmv.c displ.c gsinterf.c
OBJECTS=bmv.o displ.o gsinterf.o
HEADERS=bmv.h
SRCDIR=bmv-1.0a
# DESTDIR=/usr/bin
DESTDIR=/usr/local/bin
GSDIR=/usr/local/lib/ghostscript
GSNAME=$(GSDIR)/gs.gcc
CC=gcc -m486 \
-Wall -Wtraditional -Wpointer-arith -Wcast-qual -Wwrite-strings \
-Wmissing-prototypes -Wnested-externs \
-DGSNAME=\"$(GSNAME)\" -DGSDIR=\"$(GSDIR)\" -DCOLOUR=1
DEFS=LINUX
CFLAGS= -O3 -m486 -fomit-frame-pointer
# CFLAGS= -g
LIBS= -lvga
# build the program
#all: bmv clean
all: bmv
# install the program
install: bmv clean
chmod +s bmv
mv bmv ${DESTDIR}/bmv
# linking
bmv: $(OBJECTS)
$(CC) $(CFLAGS) -o bmv $(OBJECTS) $(LIBS)
# Clean removes objects
clean:
rm *.o
$(OBJECTS): $(HEADERS)
|