Commit 5f925a65 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4d471fb3
......@@ -9,7 +9,12 @@ CC := emcc -s WASM=0
SO := js
endif
all : libk_so.$(SO)
#all : libk_so.$(SO)
all : prog.js
libk_so.$(SO) :
$(CC) -s SIDE_MODULE=1 -DLIBK_COMPILE -o $@ libk.c
prog.js : libk_so.$(SO)
$(CC) -s MAIN_MODULE=1 -o $@ prog.c
#include <stdio.h>
#include "libk.h"
int main() {
int k;
printf("prog!\n");
k = kfunc1();
printf("libk.kfunc1 -> %d\n", k);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment