mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
Some measurements with a logic analyzer and the Raspberry Pi 2 sleep: 0.001500, measured avg: 0.0015357, measured 0.95 perc.: 0.0015573 sleep: 0.0185, measured avg: 0.0186177, measured 0.95 perc.: 0.0186345 servo_pulse_oversleep was set to account for the (expected) overhead of waking up and toggling the pin with help from the numbers above.
19 lines
473 B
Makefile
19 lines
473 B
Makefile
TARGET := libprocessing-io.so
|
|
OBJS := impl.o
|
|
CC := gcc
|
|
|
|
# prefix with -m32 to compile for linux32
|
|
CFLAGS := -std=gnu99 -fPIC -g
|
|
CFLAGS += -I$(shell dirname $(shell realpath $(shell which javac)))/../include
|
|
CFLAGS += -I$(shell dirname $(shell realpath $(shell which javac)))/../include/linux
|
|
LDFLAGS := -shared
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
|
|
|
iface.h:
|
|
javah -classpath .. -o iface.h processing.io.NativeInterface
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(OBJS)
|