Skip to content

Instantly share code, notes, and snippets.

@adampash
Created December 9, 2013 23:05
Show Gist options
  • Save adampash/7882743 to your computer and use it in GitHub Desktop.
Save adampash/7882743 to your computer and use it in GitHub Desktop.
A simpler Makefile
INCLUDES=-I$(NACL_SDK_ROOT)/include -L$(NACL_SDK_ROOT)/lib/pnacl/Release \
-I$(NACL_SDK_ROOT)/toolchain/mac_x86_newlib/i686-nacl/usr/include
LIBS:= -lppapi_cpp -lppapi \
-lpthread \
-lopencv_imgproc -lopencv_highgui -lopencv_core -lopencv_objdetect \
-lpng -ltiff -ljpeg -lzlib
all:
$(NACL_SDK_ROOT)/toolchain/mac_pnacl/bin/pnacl-clang++ hello_tutorial.cc \
$(INCLUDES) -o hello.pexe $(LIBS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment