3af44d3e5a02f2ac36194ce43e1cb1c652fee0b0
[lttng-ust.git] / doc / examples / java-jul / Makefile
1 #
2 # Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
3 #
4 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED OR
5 # IMPLIED. ANY USE IS AT YOUR OWN RISK.
6 #
7 # Permission is hereby granted to use or copy this program for any purpose,
8 # provided the above notices are retained on all copies. Permission to modify
9 # the code and to distribute modified code is granted, provided the above
10 # notices are retained, and a notice that the code was modified is included
11 # with the above copyright notice.
12 #
13 # This Makefile is not using automake so that users may see how to build a
14 # program with tracepoint provider probes as stand-alone shared objects.
15 #
16 # This makefile is purposefully kept simple to support GNU and BSD make.
17 #
18
19 # Default JUL jar name.
20 JARFILE=liblttng-ust-jul.jar
21
22 # Check if the top level makefile overrides the JUL Jar file name.
23 ifneq "$(JAVA_JARFILE_OVERRIDE)" ""
24 JARFILE=$(JAVA_JARFILE_OVERRIDE)
25 endif
26
27 # Check if the top level makefile overrides the JUL classpath.
28 ifeq "$(JAVA_CLASSPATH_OVERRIDE)" ""
29 CLASSPATH=/usr/local/lib/lttng/java/$(JARFILE):/usr/lib/lttng/java/$(JARFILE)
30 else
31 CLASSPATH=$(JAVA_CLASSPATH_OVERRIDE)/$(JARFILE)
32 endif
33
34 JFLAGS = -g
35 JC = javac -cp "$(CLASSPATH):."
36 .SUFFIXES: .java .class
37 .java.class:
38 $(JC) $(JFLAGS) $*.java
39
40 CLASSES = Hello.java
41
42 all: classes
43
44 classes: $(CLASSES:.java=.class)
45
46 .PHONY: clean
47 clean:
48 $(RM) *.class
This page took 0.028929 seconds and 3 git commands to generate.