File: DMakefile

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,880 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,429; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,701; csh: 3,928; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (96 lines) | stat: -rw-r--r-- 2,404 bytes parent folder | download | duplicates (9)
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
# ADOC -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
#
# (c)Copyright 1995 by Tobias Ferber.
#
# This file is part of ADOC.
#
# ADOC 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 1 of the License, or
# (at your option) any later version.
#
# ADOC 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 ADOC; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

CC       = dcc
CFLAGS   = -3.1 -s
FLEX     = flex -8 -f
TEX      = virtex &tex
TEXINDEX = texindex
RM       = delete quiet
CP       = copy quiet
TAR      = tar

# -DDEBUG needs debug.c smartmem.c and timer.c
#CFLAGS= -3.1 -s -DDEBUG
#srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c debug.c smartmem.c timer.c

srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c
objs = $(srcs:*.c:*.o)
prog = adoc

all: $(prog)

#

$(prog): $(objs)
	$(CC) $(CFLAGS) -o %(left) $(objs)

lex.yy.c: adoc.yy
	$(FLEX) adoc.yy

# flex option `-f' makes need of dcc's -mC -mD options

$(objs): $(srcs)
	$(CC) $(CFLAGS) -mC -mD -c -o %(left) %(right)

#

coda: coda.o
	$(CC) $(CFLAGS) -o %(left) %(right)

coda.o: coda.c
	$(CC) $(CFLAGS) -mC -mD -c -o %(left) %(right)

coda.c: coda.yy
	$(FLEX) -t >coda.c coda.yy

#

install: $(prog) coda
	$(CP) $(prog) coda devel:bin/

arc:
        $(TAR) cf $(prog).tar `cpdist -n`

dist: $(prog) $(prog).texi $(prog).guide $(prog).dvi header.texi CHANGES
	cpdist -a -DAMIGA adoc-1.02/

clean:
	$(RM) coda coda.c adoc #?.o lex.yy.c #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)

#

docs: $(prog).dvi $(prog).guide

# create the AmigaGuide file and fix some bugs in `makeinfo --amiga'

$(prog).guide: $(prog).texi
	makeinfo --amiga $(prog).texi
	cvt -s -fpatchguide -o%s $(prog).guide

$(prog).dvi: $(prog).texi
	$(TEX) $(prog).texi
	$(TEXINDEX) $(prog).cp
	$(TEXINDEX) $(prog).fn
	$(TEXINDEX) $(prog).vr
	$(TEXINDEX) $(prog).ky
	$(TEXINDEX) $(prog).pg
	$(TEX) $(prog).texi
	$(TEX) $(prog).texi