4 JAVAFX_HOME=/usr/local/javafx-sdk-15
5 JAVA_HOME=/usr/local/jdk-15
7 CFLAGS=-Wall -Wno-parentheses
9 LDLIBS=-lX11 -lXext -lXss
13 notzed.busyalert_JAVA= \
14 java/notzed.busyalert/module-info.java \
15 java/notzed.busyalert/au/notzed/busyalert/BusyAlert.java
17 all: bin/busymon bin/notzed.busyalert.jar
19 bin/busymon.o: src/busymon.c
20 bin/busymon: bin/busymon.o
24 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
26 bin/notzed.busyalert.jar: bin/.classes
27 jar -c -f $(@) -M -C bin/modules/notzed.busyalert .
29 bin/.classes: $(notzed.busyalert_JAVA)
30 javac --module-source-path "java/*" -d bin/modules -m notzed.busyalert --module-path $(JAVAFX_HOME)/lib
36 install: bin/notzed.busyalert.jar bin/busymon
37 sed -e 's,@JAVA_HOME@,$(JAVA_HOME),g' \
38 -e 's,@JAVAFX_HOME@,$(JAVAFX_HOME),g' \
39 -e 's,@MODULE_DIR@,$(prefix)/share/notzed.busyalert,g' \
40 < src/busyalert.in > bin/busyalert
41 chmod 755 bin/busyalert
42 install -D bin/busyalert $(DESTDIR)$(prefix)/share/notzed.busyalert/busyalert
43 install -D bin/notzed.busyalert.jar $(DESTDIR)$(prefix)/share/notzed.busyalert/notzed.busyalert.jar
44 install -D bin/busymon $(DESTDIR)$(prefix)/bin/busymon
47 tar cfz busymon$(VERSION).tar.gz \
48 --xform 's@^@busymon$(VERSION)/@' \
49 COPYING README Makefile \
50 src/busyalert.in src/busymon.c \
51 $(notzed.busyalert_JAVA) \