BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / cjopus / Makefile

Makefile

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
Makefile 628 B Download Raw
1# Let's go, Makefile!
2# This is to compile CJOpus from a C program to a JavaScript script.
3# http://mrbook.org/blog/tutorials/make/ - Thank you friend!
4CC = emcc
5EMCONF = emconfigure
6EMMAKE = emmake
7# Our flags...
8CJOPUS = src/CJOpus.c
9LIBOPUS = opus/.libs/libopus.so
10
11CFLAGS = --memory-init-file 0 -O3 -g0 --llvm-opts 3 --closure 1 --llvm-lto 3
12EMCONFFLAGS = --disable-doc --disable-extra-programs --disable-intrinsics
13
14all: make_opus transpile
15
16make_opus:
17 cd opus; \
18 ./autogen.sh; \
19 $(EMCONF) ./configure $(EMCONFFLAGS); \
20 $(EMMAKE) make;
21
22transpile:
23 mkdir bin; \
24 $(CC) $(CFLAGS) $(CJOPUS) $(LIBOPUS) -o bin/CJOpus.js;