--- Makefile.old 2014-05-12 09:30:47.000000000 +0300 +++ Makefile 2014-05-12 09:40:31.000000000 +0300 @@ -24,7 +24,7 @@ JAVAC_CLASSPATH = $(JAVA_HOME)/jre/lib/ext/comm.jar JAVAH = $(JAVA_HOME)/bin/javah JARFILE = jar/CommDriver.jar -CFLAGS = -O1 -fPIC -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(JAVA_HOME)/include/bsd +CFLAGS += -fPIC -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(JAVA_HOME)/include/bsd MACHINE_ARCH ?= i386 .SUFFIXES: .java .class @@ -38,10 +38,12 @@ # Install stuff # install: all - install -c -o bin -g bin -m 0444 lib/libParallel.so $(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) - install -c -o bin -g bin -m 0444 lib/libSerial.so $(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) - install -c -o bin -g bin -m 0444 javax.comm.properties $(JAVA_HOME)/jre/lib - install -c -o bin -g bin -m 0444 $(JARFILE) $(JAVA_HOME)/jre/lib/ext + install -d -c -o bin -g bin -m 0755 $(DESTDIR)$(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) + install -d -c -o bin -g bin -m 0755 $(DESTDIR)$(JAVA_HOME)/jre/lib/ext + install -c -o bin -g bin -m 0444 lib/libParallel.so $(DESTDIR)$(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) + install -c -o bin -g bin -m 0444 lib/libSerial.so $(DESTDIR)$(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) + install -c -o bin -g bin -m 0444 javax.comm.properties $(DESTDIR)$(JAVA_HOME)/jre/lib + install -c -o bin -g bin -m 0444 $(JARFILE) $(DESTDIR)$(JAVA_HOME)/jre/lib/ext # # Clean all files produced by compile @@ -96,7 +98,7 @@ src/$(JAVA_PKG_DIR)/javax_comm_ParallelPort.h \ src/$(JAVA_PKG_DIR)/javax_comm_ParallelPortEvent.h if [ ! -d lib ]; then mkdir lib; fi - gcc $(CFLAGS) -o lib/libParallel.so src/$(JAVA_PKG_DIR)/libParallel.c + $(CC) $(CFLAGS) -o lib/libParallel.so src/$(JAVA_PKG_DIR)/libParallel.c # # Serial driver JNI part # @@ -105,7 +107,7 @@ src/$(JAVA_PKG_DIR)/javax_comm_SerialPort.h \ src/$(JAVA_PKG_DIR)/javax_comm_SerialPortEvent.h if [ ! -d lib ]; then mkdir lib; fi - gcc $(CFLAGS) -o lib/libSerial.so src/$(JAVA_PKG_DIR)/libSerial.c + $(CC) $(CFLAGS) -o lib/libSerial.so src/$(JAVA_PKG_DIR)/libSerial.c .java.class: $(JAVAC) -classpath src:$(JAVAC_CLASSPATH) $*.java FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libshhopt
Commit message (Expand)AuthorAgeFilesLines