Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: examples/audio/openal-ogg/Makefile

Issue 12114013: Fix openal NaCl port. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | examples/audio/openal-ogg/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/audio/openal-ogg/Makefile
diff --git a/examples/audio/openal-ogg/Makefile b/examples/audio/openal-ogg/Makefile
index 7f9ea2c8dd571c60b3dfcd38935c22fee145e281..e30d76006645d1e8491ee35fecadeaa60b2a44b9 100644
--- a/examples/audio/openal-ogg/Makefile
+++ b/examples/audio/openal-ogg/Makefile
@@ -4,6 +4,8 @@
#
# Build OpenAL/ogg demo with Pepper in C
+NACL_ARCH ?= x86_64
+NACLCC ?= $(NACH_ARCH)-nacl-g++
NACLPORTS_ROOT ?= ../../..
PUBLISH_DIR = $(NACLPORTS_ROOT)/out/publish/openal-ogg
CFLAGS += -O3 -std=gnu99 -Werror -I${NACL_SDK_ROOT}/include
@@ -14,10 +16,14 @@ all: publish
openal_ogg_$(NACL_ARCH).nexe: openal_ogg.c ogg_buffer_reader.c
$(NACLCC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
-publish: openal_ogg_$(NACL_ARCH).nexe openal_ogg.html openal_ogg.nmf sample.ogg
+publish: openal_ogg_$(NACL_ARCH).nexe index.html openal_ogg.nmf sample.ogg
mkdir -p $(PUBLISH_DIR)
cp $^ $(PUBLISH_DIR)
clean:
rm -f *.o *.nexe
+run:
+ cd $(PUBLISH_DIR) && $(NACL_SDK_ROOT)/tools/httpd.py --no_dir_check
+
+.PHONY: all clean publish
« no previous file with comments | « no previous file | examples/audio/openal-ogg/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698