File: Makefile

package info (click to toggle)
ttthreeparser 1.4-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 296 kB
  • ctags: 58
  • sloc: java: 277; makefile: 30; sh: 11
file content (30 lines) | stat: -rw-r--r-- 660 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
22
23
24
25
26
27
28
29
30
# Copyright (c) 2000 Testing Technologies IST GmbH. All rights reserved.
# See the file COPYRIGHT for details of redistribution and use.

GRAMMARS	=  $(wildcard *.g)
JAVA_GEN	=  $(GRAMMARS:.g=.java)
JAVAS		=  $(wildcard *.java)
CLASS		=  $(JAVAS:.java=.class)

# Use this if you do not have jikes
# JAVAC		= javac

# Jikes is recommended for better performance
JAVAC		=  jikes-kaffe -g +E +D

all: translate $(CLASS)

translate: $(JAVA_GEN)

.SUFFIXES: .g .java .class

.g.java: $(GRAMMARS)
	@echo Translating $?
	cantlr $?

$(CLASS): $(JAVAS) 
	@echo Compiling $+
	$(JAVAC) -classpath $(CLASSPATH) $+

clean:
	\rm -f $(JAVA_GEN) *.txt *~ *.class *TokenTypes*