File: Makefile

package info (click to toggle)
e2ps 4.34-5
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 460 kB
  • ctags: 201
  • sloc: ansic: 11,698; makefile: 103
file content (84 lines) | stat: -rw-r--r-- 1,646 bytes parent folder | download | duplicates (2)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#==============================================================================
#		Makefile for e2ps
#			by Nobuyuki SHIRAKI
#			Last change : Mon 20 May 2002  11:41:41
#==============================================================================


# Directory to install e2ps
E2PS_INST_DIR = /usr/local/bin

# Tab width
TABSTOP = 8

# Margine of top, bottom, left and right
TOP    = 40.0
BOTTOM = 40.0
LEFT   = 40.0
RIGHT  = 40.0

# Max lines per one page
MAXLINE = 66

# Default font size
FONTSIZE = 10.0

# Space ratio between lines
NLRATE = 1.1

# Paper settings
DEFPAPER = \
		-DTABSTOP=$(TABSTOP) -DMAXLINE=$(MAXLINE) \
		-DFONTSIZE=$(FONTSIZE) \
		-DTOP=$(TOP) -DBOTTOM=$(BOTTOM) \
		-DLEFT=$(LEFT) -DRIGHT=$(RIGHT) \
		-DNLRATE=$(NLRATE)

# If you use a printer without EUC fonts
DEFNOEUC = -DJIS_PS

# for Tektronix printers
# DEFTEKTRO = -DTEKTRO

# For Y2K
# Y2K = 0	-> System time + 1900 = year
# Y2K = 1	-> System time        = year
# Y2K = 2	-> System time + 2000 = year
DEFY2K = -DY2K=0


# Defines
DEFINES = $(DEFPAPER) $(DEFNOEUC) $(DEFTEKTRO) $(DEFY2K)


# C and C args
CC = gcc
CC_ARGS = -Wall
# CC_ARGS = -Wall -O2
CC_LIB = 

# strip command
STRIP = strip

CFLAGS += $(CC_ARGS) $(DEFINES) $(CC_LIB)

SRC = e2ps.c ps-font.c wtkf.c
OBJ = e2ps.o ps-font.o wtkf.o

all:		e2ps

clean:
	rm -f *~ e2ps *.o

readme:
	nkf -j     README.euc > README.jis
	nkf -s -Lw README.euc > README.sjis

install:	e2ps
	cp e2ps $(E2PS_INST_DIR)
#	@if [ -f $(E2PS_INST_DIR)/e2lpr ]; then rm $(E2PS_INST_DIR)/e2lpr; fi
#	ln -s $(E2PS_INST_DIR)/e2ps $(E2PS_INST_DIR)/e2lpr

e2ps:	$(OBJ)
	$(CC) -o $@ $(OBJ) $(CFLAGS) $(LDFLAGS) -lpaper
#	$(STRIP) $@