-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.defs
34 lines (29 loc) · 963 Bytes
/
Makefile.defs
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
# common make definitions
# uses: NAME, ALLDEP
VERSION = 0.4
CC = gcc
LD = $(CC)
RAGEL = ragel
RLGENCD = rlgen-cd
RLGENDOT = rlgen-dot
MKDEP = $(CC) -MM
INCLUDES ?=
CFLAGS += -Wall -g -c
LDFLAGS +=
DEFS += -DVERSION=$(VERSION) -DNAME=$(NAME) -DVERSION_S='"$(VERSION)"' -DNAME_S='"$(NAME)"'
LIBS +=
RAGELFLAGS =
RLGENCODEFLAGS ?= -l
RLGENDOTFLAGS ?= -p
# automatically generated files
rlsources = $(wildcard parse_*.rl)
gensources = $(rlsources:.rl=.c)
nongensources = $(filter-out $(gensources), $(wildcard *.c))
sources = $(nongensources) $(gensources)
objs = $(sources:.c=.o)
depends = $(sources:.c=.d)
dotfiles = $(rlsources:.rl=.dot)
diagrams = $(rlsources:.rl=.png) $(rlsources:.rl=.jpg) $(rlsources:.rl=.gif) $(rlsources:.rl=.ps) $(rlsources:.rl=.svg)
mansources = $(wildcard *.in)
gendocs = $(mansources:.in=.html) $(mansources:.in=.man)
tarsources = $(rlsources) $(nongensources) $(wildcard *.h) $(mansources) $(wildcard *.txt) $(wildcard Makefile*)