File: Makefile

package info (click to toggle)
bmv 1.2-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 404 kB
  • ctags: 464
  • sloc: ansic: 3,432; makefile: 53
file content (58 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (3)
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
#
# This is Makefile, part of the source code for
#
# BMV version 1.2
# copyright by Jan Kybic, March 1995
#
# 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.2
DESTDIR=/usr/bin

CC=gcc
DEFS=LINUX
CFLAGS=-O3

# build the program
all:	bmv 

# install the program
install: bmv clean
	chmod +s bmv
	mv bmv ${DESTDIR}/bmv
	 
# linking
bmv:  	$(OBJECTS)
	$(CC) -o bmv $(OBJECTS) -lvga

# Clean removes objects
clean:	
	rm *.o

tar:
	( cd .. ; tar czvf bmv-1.2.tar.gz $(SRCDIR)/* )


$(OBJECTS): 	$(HEADERS)