summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/src/Makefile.in
blob: b53d3c605a0d9f09a12e14f70115732cbeceb1c3 (plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# @configure_input@
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# @configure_input@

SHELL = /bin/sh

#### Start of system configuration section. ####

srcdir = @srcdir@
VPATH = @srcdir@

# If you use gcc, you should either run the fixincludes script that
# comes with it or else use gcc with the -traditional option.  Otherwise
# ioctl calls will be compiled incorrectly on some systems.
CC = @CC@
AR = ar

# set make command
@SET_MAKE@

# Set RANLIB = echo if your system doesn't have or need ranlib.
RANLIB = @RANLIB@

# Use cp if you don't have install.
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

DEFS = @DEFS@
LIBS = @LIBS@

INCLUDES = -I@top_srcdir@ -I@top_srcdir@/include
CFLAGS = @CFLAGS@ $(INCLUDES) $(DEFS)
LDFLAGS = @LDFLAGS@

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi

prefix = @prefix@
exec_prefix = @exec_prefix@

# Where to install the executables.
bindir = $(exec_prefix)/bin

# Where to put the include header
includedir = $(prefix)/include

# Where to put the Info files
infodir = $(prefix)/info

# Where to put the library file
libdir = $(prefix)/lib

# Where to put the manual pages.
mandir = $(prefix)/man

#### End of system configuration section. ####
#CC = gcc
#CFLAGS = -g -pg -Wall -m486 -DMEMCHECK -DTESTCODE -DCOPYDELETE -I/usr/local/include
#CFLAGS = -O3 -Wall -m486 -DTESTCODE -DCOPYDELETE -I../ -I../include -I/usr/local/include
#LDFLAGS = -L/usr/local/lib
#LIBS = -ldmalloc
#LIBS = -lefence
#LIBS = -lc_p
OBJS = 	ttfdump.o 

all: ttfdump

ttfdump:${OBJS} ../libttf/libttf.a
	${CC} ${CFLAGS} -o $@ ${OBJS} ../libttf/libttf.a ${LIBS}

test:ttfdump
	-./ttfdump times.ttf times.txt
	@echo There should be no differences found:
	diff times.txt times.ok

depend:
	co RCS/*
	makedepend *.c *.h
	rcsclean
clean:
	rm -f *.o *~ core gmon.out times.txt ttfdump logfile		
.PHONY: clean

distclean: clean
	rm -f tags TAGS Makefile

.PHONY: distclean

check:	test

install:	ttfdump
	$(INSTALL_PROGRAM) ttfdump $(bindir)/ttfdump
	strip $(bindir)/ttfdump || true
	chmod 775 $(bindir)/ttfdump
	$(INSTALL_DATA) ../docs/ttfdump.1 $(mandir)/man1/ttfdump.1
	chmod 664 $(mandir)/man1/ttfdump.1
	@-rm -f $(mandir)/cat1/ttfdump.1
	@echo Installed files...
	ls -l $(bindir)/ttfdump $(mandir)/man1/ttfdump.1