File: Makefile.scs

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 (70 lines) | stat: -rw-r--r-- 1,876 bytes parent folder | download | duplicates (4)
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
67
68
69
70
#
# This is Makefile, part of the source code for
#
# BMV version 1.0 alpha
# copyright by Jan Kybic, 26th July 1994
#
# modified by wbader@csee.lehigh.edu
#
# Jan Kybic, Prosecka 681, Praha 9, Czech Republic, <kybic@earn.cvut.cz>
#                                   or temporarily  <jkybic@vipunen.hut.fi>
#
# 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 vgasco.c
OBJECTS=bmv.o displ.o gsinterf.o vgasco.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 -I. -I$(SPICE_INC) \
	-Wall -Wtraditional -Wpointer-arith -Wcast-qual -Wwrite-strings \
	-Wmissing-prototypes -Wnested-externs \
	-DGSNAME=\"$(GSNAME)\" -DGSDIR=\"$(GSDIR)\" -DUSE_WIN=1 -DCOLOUR=1
DEFS=LINUX
CFLAGS= -O3 -m486 -fomit-frame-pointer
# CFLAGS= -g
# LIBS= -lvga
DEF_LIB= -lx -lm -lmalloc -lsc_s -lc_s -Xlinker -z
LIBS= ../unix/inc/winmod.o ../unix/inc/console.o $(SPICE_LIBS) $(SPICE_LIBS2) \
	$(DEF_LIB)

# build the program
#all:	bmv clean
all:	bmv

# install the program
install: bmv clean
	chmod +s bmv
	mv bmv /usr/bin/bmv
	
# linking
bmv:  	$(OBJECTS)
	$(CC) $(CFLAGS) -o bmv $(OBJECTS) $(LIBS)

# Clean removes objects
clean:	
	rm *.o

$(OBJECTS): 	$(HEADERS)