File: make.rules

package info (click to toggle)
jython 2.2.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,708 kB
  • ctags: 46,200
  • sloc: python: 150,937; java: 86,267; xml: 1,080; perl: 104; sh: 93; makefile: 81; ansic: 24
file content (72 lines) | stat: -rw-r--r-- 2,299 bytes parent folder | download | duplicates (3)
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
# -*- makefile -*-
# Copyright  Corporation for National Research Initiatives
#
# Generic Makefile rules for building JPython.  Assumes GNU make.
# Configure your build of JPython by modifying macros in this file.

# You will need to get Sun's JavaCC (Java Compiler Compiler) to build
# the JPython parser.  JavaCC can be downloaded from
# http://www.sun.com/suntest/products/JavaCC/index.html
# I currently use JavaCC 0.7.1 to build JPython, our grammar files are
# incompatible with any newer version of JavaCC.  While this will be
# fixed in some future version, for now don't rebuild the .java files
# in org/python/parser.

# Uncomment these 3 lines to use the Jikes compiler.  Jikes is a Java
# compiler available from IBM's alphaWorks.  It is much faster than
# Sun's javac.  You'll need at least Jikes 0.50.  I've tested up to
# Jikes 1.02, which seems to work well.  You may need to change
# BOOTSTRAPCLASSES to point to your standard Java classes.  Jikes
# requires you to supply your own standard classes; the one described
# below comes from Sun's production JDK 1.2 for Solaris.
#
# Get Jikes from http://www.alphaWorks.ibm.com/formula/Jikes

JAVAC = javac
OPT = -g -nowarn -source 1.3 -target 1.3
BOOTSTRAPCLASSES = /usr/share/java/libreadline-java.jar:/usr/share/java/servlet-2.3.jar

# Uncomment these 3 lines to use Sun's 1.2 javac compiler

# JAVAC = javac
# OPT = -g:lines,vars,source
# BOOTSTRAPCLASSES =

# Uncomment these 3 lines to use Sun's 1.1 javac compiler.  See the
# notes in org/python/modules/time.java for compatibility issues.

# JAVAC = /depot/java/bin1.1/javac
# OPT = -g
# BOOTSTRAPCLASSES = /depot/java/plat/jdk1.1/lib/classes.zip

# This is the Java intepreter to use
JAVA = java

# Unix and Linux users should use this CLASSPATH separator
SEP = :
# Windows users may need to redefine the CLASSPATH separator to this
# SEP = ;

# You shouldn't need to change anything below this line

CLASSPATH = "SUBDIRS MUST OVERRIDE"
CLASSPATHSWITCH = $(CLASSPATH)$(SEP)$(BOOTSTRAPCLASSES)

.SUFFIXES= .java .class

%.class: %.java
	$(JAVAC) $(OPT) -classpath "$(CLASSPATHSWITCH)" $?

SOURCES = $(wildcard *.java)
CLASSES = $(filter-out $(SKIP),$(SOURCES:%.java=%.class))

.PHONY: all clean realclean

all: $(CLASSES)

install: all

clean::
	-rm *.class

realclean:: clean