File: Makefile

package info (click to toggle)
ragel 5.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,628 kB
  • ctags: 4,619
  • sloc: cpp: 15,187; ansic: 3,490; yacc: 1,921; makefile: 411; sh: 146; awk: 6
file content (21 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
RAGEL = ragel
RLCODEGEN = rlcodegen

all: format

ps: format.ps

format: format.o 
	gcc -g -o format format.o

format.c: format.rl
	$(RAGEL) format.rl | $(RLCODEGEN) -G2 -o format.c

format.ps: format.rl
	$(RAGEL) format.rl | $(RLCODEGEN) -V | dot -Tps > format.ps

%.o: %.c
	gcc -Wall -O2 -g -c -o $@ $<

distclean clean:
	rm -Rf *.o format.c format format.ps