-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 783 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (20 loc) · 783 Bytes
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
CC = gcc
CFLAGS = -g -m32 -Wall -fsanitize=address -DX86
FBT = ../fbt
APPPATH = unleashed-firmware/applications_user/zero_jvm
CPPFLAGS = -I unleashed-firmware/furi -I unleashed-firmware/applications/services
SRC = src/zero_jvm_default_entry.c src/zero_jvm/loader.c src/zero_jvm/runtime.c src/zero_jvm/frame.c src/zero_jvm/utils.c
# Target for a building on a x86 architecture for debug
all: x86
x86: $(SRC)
$(CC) -o zero_jvm_default $^ $(CFLAGS) -I /src/zero_jvm
# Target for building on a flipper
flipper:
mkdir -p $(APPPATH)
cp -r src/* $(APPPATH)/
rm $(APPPATH)/zero_jvm_default_entry.c
cd unleashed-firmware && $(FBT) fap_zero_jvm
launch:
cd unleashed-firmware && sudo $(FBT) launch_app APPSRC=applications_user/zero_jvm
clean:
rm -rf $(APPPATH) zero_jvm_default