Skip to content

Commit

Permalink
Added Makefile.
Browse files Browse the repository at this point in the history
Change-Id: I3fde97f0a9e320f407190afa95af0a7c127bd050
  • Loading branch information
jeastwo1 committed Sep 12, 2014
1 parent 8d929ba commit 28de84e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions BoilerPlateExtension/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ECHO_CFLAGS=$(CFLAGS) -fPIC -Wall -std=c++0x
SOURCES=src/bp.cpp src/bp_extension.cpp src/bp_instance.cpp src/bp_api.cc common/extension.cc


all: libbp.so

bp_api.cc:
python tools/generate_api.py src/bp_api.js kSource_bp_api src/bp_api.cc

libbp.so: prepare bp_api.cc
$(CC) $(ECHO_CFLAGS) -shared -o build/libbp.so \
$(SYSROOT_FLAGS) -I./ $(SOURCES)

prepare:
mkdir -p build

install: libbp.so
install -D build/libbp.so \
$(DESTDIR)/$(PREFIX)/lib/tizen-extensions-crosswalk/libbp.so

clean:
rm -Rf build
rm src/bp_api.cc

.PHONY: all prepare clean

0 comments on commit 28de84e

Please sign in to comment.