|
@@ -13,20 +13,7 @@ CFLAGS += -fPIC
|
|
|
OBJFILES := schmidt_trigger.o ringbuf.o monotonic_queue.o
|
|
|
OBJFILES += jump_rope_count_device.o
|
|
|
|
|
|
-DYLIB_SUFFIX=unknown
|
|
|
-UNAME_S := $(shell uname -s)
|
|
|
-ifeq ($(UNAME_S), Linux)
|
|
|
- DYLIB_SUFFIX=.so
|
|
|
-endif
|
|
|
-ifeq ($(UNAME_S), Darwin)
|
|
|
- DYLIB_SUFFIX=.dylib
|
|
|
-endif
|
|
|
-
|
|
|
-ifeq ($(DYLIB_SUFFIX), unknown)
|
|
|
- $(error Unsupported operating system)
|
|
|
-else
|
|
|
- DYLIB := libjump$(DYLIB_SUFFIX)
|
|
|
-endif
|
|
|
+include dylib.make
|
|
|
|
|
|
all: $(DYLIB) demo/demo
|
|
|
|