summaryrefslogtreecommitdiff
path: root/odk/examples/java/NotesAccess/Makefile
blob: 4707d9d47d5b73c747b064305a7cadd013b04d86 (plain)
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
# Builds the NotesAccess java demo.

PRJ=..$(PS)..$(PS)..
SETTINGS=../../../settings

include $(SETTINGS)/settings.mk

include $(SETTINGS)/dk.mk
include $(SETTINGS)/std.mk

# Define non-platform/compiler specific settings

JAVAFILES  = \
	NotesAccess.java

CLASSFILES = $(patsubst %.java,$(OUT_CLASS)$(PS)%.class,$(JAVAFILES))

SDK_CLASSPATH =	$(subst $(EMPTYSTRING) $(EMPTYSTRING),,\
		$(OFFICE_CLASSES_DIR)$(PS)jurt.jar \
		$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)$(PS)unoil.jar \
		$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)$(PS)ridl.jar \
		$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)$(PS)sandbox.jar \
		$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)$(PS)juh.jar \
		$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)$(PS)Notes.jar \
		$(PATH_SEPARATOR)$(OUT_CLASS)\
		)


# Targets
.PHONY: ALL
ALL : notesaccess

include $(SETTINGS)/stdtarget.mk

$(CLASSFILES) : $(OUT) $(OUT_CLASS) $(JAVAFILES)
	javac -classpath $(SDK_CLASSPATH) -d $(OUT_CLASS) $(JAVAFILES) 

notesaccess: $(CLASSFILES)
	@echo --------------------------------------------------------------------------------
	@echo Please use the following command to execute
	@echo java -classpath $(subst \\,\,$(SDK_CLASSPATH)) NotesAccess $(OSEP)Connection$(CSEP) $(OSEP)Host$(CSEP) $(OSEP)User$(CSEP) $(OSEP)Password$(CSEP) $(OSEP)Database$(CSEP)
	@echo --------------------------------------------------------------------------------