2016-11-08 04:21:15 +00:00
|
|
|
# Makefile.in for Serval DNA Java API
|
|
|
|
# vim: noet ts=8 sts=0 sw=8
|
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
|
|
|
bindir=@bindir@
|
|
|
|
sbindir=@sbindir@
|
|
|
|
sysconfdir=@sysconfdir@
|
|
|
|
localstatedir=@localstatedir@
|
2017-10-23 07:18:40 +00:00
|
|
|
srcdir=@srcdir@
|
2016-11-08 04:21:15 +00:00
|
|
|
|
|
|
|
JAVAC = @JAVAC@
|
|
|
|
CLASSDIR = classes
|
|
|
|
TESTCLASSDIR = testclasses
|
|
|
|
|
2017-10-23 07:18:40 +00:00
|
|
|
SOURCES := $(shell find $(srcdir)/src -name '*.java')
|
|
|
|
TEST_SOURCES := $(shell find $(srcdir)/test -name '*.java')
|
2017-02-13 05:06:13 +00:00
|
|
|
|
2016-11-08 04:21:15 +00:00
|
|
|
.PHONY: all check clean classes testclasses
|
|
|
|
|
|
|
|
all: check classes testclasses
|
|
|
|
|
|
|
|
check:
|
|
|
|
@if [ -z "$(JAVAC)" ]; then echo "No java compiler configured" >&2; exit 1; fi
|
2017-02-13 05:06:13 +00:00
|
|
|
@if ! $(JAVAC) -version >/dev/null 2>&1; then echo "Java compiler not executable" >&2; exit 1; fi
|
2016-11-08 04:21:15 +00:00
|
|
|
|
2017-02-13 05:06:13 +00:00
|
|
|
$(CLASSDIR)/dummy: $(SOURCES)
|
2016-11-08 04:21:15 +00:00
|
|
|
@mkdir -p $(CLASSDIR)
|
2017-02-13 05:06:13 +00:00
|
|
|
@echo "JAVAC $(CLASSDIR)"
|
|
|
|
@$(JAVAC) -Xlint:unchecked -d $(CLASSDIR) $(SOURCES)
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
classes: $(CLASSDIR)/dummy
|
2016-11-08 04:21:15 +00:00
|
|
|
|
2017-02-13 05:06:13 +00:00
|
|
|
$(TESTCLASSDIR)/dummy: $(TEST_SOURCES) $(CLASSDIR)/dummy
|
2016-11-08 04:21:15 +00:00
|
|
|
@mkdir -p $(TESTCLASSDIR)
|
2017-02-13 05:06:13 +00:00
|
|
|
@echo "JAVAC $(TESTCLASSDIR)"
|
2017-05-23 02:07:26 +00:00
|
|
|
@$(JAVAC) -Xlint:unchecked -d $(TESTCLASSDIR) -classpath $(CLASSDIR) $(TEST_SOURCES)
|
2017-02-13 05:06:13 +00:00
|
|
|
@touch $@
|
|
|
|
|
|
|
|
testclasses: $(TESTCLASSDIR)/dummy
|
2016-11-08 04:21:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(RM) -r $(CLASSDIR) $(TESTCLASSDIR)
|