File: Makefile

package info (click to toggle)
videogen 0.33-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 464 kB
  • sloc: ansic: 2,853; yacc: 853; sh: 124; lex: 118; makefile: 47
file content (124 lines) | stat: -rw-r--r-- 2,412 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
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
116
117
118
119
120
121
122
123
124
# +-------------------------------------------------------+
# |                                                       |
# |     videogen                                          |
# |                                                       |
# |     a simple XFree86 Modeline calculator              |
# |     (c) 1997-2003, Szabolcs Rumi                      |   
# |                                                       |
# |     http://www.dynaweb.hu/opensource/videogen         |
# |                                                       |
# |     the videogen package is distributed under the     |
# |     GNU General Public License Version 2 (GPLv2)      |
# |                                                       |
# +-------------------------------------------------------+   





# installation directories

BINDIR = /usr/local/bin
MANDIR = /usr/local/man



# uncomment the definitions appropriate for your environment below

# Linux, FreeBSD, NetBSD, etc. (GNU cc, GNU make)
#CC = gcc
#CFLAGS = -Wall -O -g
#CDEFS = -D_POSIX_SOURCE
#LIBS = -lm

# SunOS 5.8/5.9 (Sun Forte cc, GNU make)
CC = cc
CFLAGS =
LIBS = -lm

# SGI IRIX 6.5 (MIPSpro cc, GNU make)
#CC = cc
#CFLAGS = -O
#LIBS = -lm

# Digital (Compaq, HP) UNIX 5.1A (DEC C, GNU Make)
#CC = cc
#CFLAGS = -w0 -O 
#LIBS = -lm

# HP-UX 10.20 (HP ANSI C, GNU Make)
#CC = cc
#CFLAGS = -Ae -O
#LIBS = -lm

# currently parser generation only works with GNU flex and bison,
# but the generated files are included in the source package so that
# you don't need any tools if you simply want to compile videogen

LEX = flex -i
YACC = bison -d





# ---------- do not change anything beyond this line ----------





# objects

OBJECTS = cfg.yy.o cfg.tab.o args.o checks.o misc.o videogen.o
INTERMEDIATE = cfg.tab.c cfg.tab.h cfg.yy.c



# targets

%.yy.c: %.l
	$(LEX) $<

%.tab.c %.tab.h: %.y
	$(YACC) $<

%.o: %.c
	$(CC) $(CFLAGS) $(CDEFS) -c $<

videogen: $(OBJECTS)
	$(CC) $(CFLAGS) $(CDEFS) -o videogen $(OBJECTS) $(LIBS)

cfg.yy.o: cfg.tab.h

.PRECIOUS: cfg.yy.c

clean:
	rm -f videogen $(OBJECTS)

distclean: clean
	rm -f core *~

realclean: distclean
	rm -f $(INTERMEDIATE)

all:
	$(MAKE) clean videogen

install:
	$(MAKE) all
	strip videogen
	cp videogen $(BINDIR)
	cp videogen.1x $(MANDIR)/man1
	chmod 755 $(BINDIR)/videogen
	chmod 644 $(MANDIR)/man1/videogen.1x

uninstall:
	rm -f $(BINDIR)/videogen
	rm -f $(MANDIR)/man1/videogen.1x





# EOF