2 # Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
4 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED OR
5 # IMPLIED. ANY USE IS AT YOUR OWN RISK.
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.
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.
16 # This makefile is purposefully kept simple to support GNU and BSD make.
19 # Required JAR files for JUL
20 JARFILE_JUL
=lttng-ust-agent-jul.jar
21 JARFILE_COMMON
=lttng-ust-agent-common.jar
23 # Check if the top level makefile overrides the JUL Jar file's path.
24 ifeq "$(JAVA_CLASSPATH_OVERRIDE_JUL)" ""
25 CLASSPATH
=/usr
/local
/share
/java
/$(JARFILE_JUL
):/usr
/share
/java
/$(JARFILE_JUL
)
27 CLASSPATH
=$(JAVA_CLASSPATH_OVERRIDE_JUL
)/$(JARFILE_JUL
)
30 # Check if the top level makefile overrides the Common Jar file's path.
31 ifeq "$(JAVA_CLASSPATH_OVERRIDE_COMMON)" ""
32 CLASSPATH
:=$(CLASSPATH
):/usr
/local
/share
/java
/$(JARFILE_COMMON
):/usr
/share
/java
/$(JARFILE_COMMON
)
34 CLASSPATH
:=$(CLASSPATH
):$(JAVA_CLASSPATH_OVERRIDE_COMMON
)/$(JARFILE_COMMON
)
38 JC
= javac
-classpath
"$(CLASSPATH):."
39 .SUFFIXES
: .java .class
41 $(JC
) $(JFLAGS
) $*.java
43 CLASSES
= Hello.java FilterChangeListenerExample.java ApplicationContextExample.java
47 classes
: $(CLASSES
:.java
=.class
)