-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile.am
41 lines (30 loc) · 1.26 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SmallBASIC
# Copyright(C) 2024 Chris Warren-Smith.
#
# This program is distributed under the terms of the GPL v2.0 or later
# Download the GNU Public License (GPL) from www.gnu.org
#
# export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/amd64/server:$LD_LIBRARY_PATH
# javap -s -p -cp target/ioio-1.0.jar 'ioio.smallbasic.AnalogInputImpl'
#
sbasic=sbasic
generated = api.h
main.lo: $(generated)
all-am: $(generated)
CLEANFILES = $(generated)
AM_CXXFLAGS=-fno-rtti -std=c++14
AM_CPPFLAGS = -DDESKTOP_MODULE -I../include -Wall @JVM_CPPFLAGS@
lib_LTLIBRARIES = libioio.la
libioio_la_SOURCES = ../include/param.cpp ../include/hashmap.cpp ../include/apiexec.cpp main.cpp $(generated)
libioio_la_LDFLAGS = -module -rpath '$(libdir)' @PLATFORM_LDFLAGS@ @JVM_LDFLAGS@
$(generated): api.json mkapi.bas mkdoc.bas
$(sbasic) mkapi.bas > $@
$(sbasic) mkdoc.bas > README.md
@touch main.cpp
android:
@./gradlew clean mergeJars && \
(cd ioio/build/libs && zip ../outputs/aar/ioio-debug.aar classes.jar) && \
(cd ioio/build/libs && zip ../outputs/aar/ioio-release.aar classes.jar) && \
cp ioio/build/outputs/aar/ioio-* ~/src/SmallBASIC/src/platform/android/app/libs/
desktop: all
@(cd ioio && mvn clean package && cp target/ioio-1.0-jar-with-dependencies.jar ..)