4 # TODO: include paths appear relative to the intial Makefile?
5 # This is awkward. This 'dual silent-failure include' helps us work
6 # from several directories (e.g. from within both
7 # naive_client/service_runtime and
8 # naive_client/service_runtime/{linux,osx}.)
9 # The PLATFORM check below makes sure one worked.
10 ifeq ($(UNAME), Darwin)
11 -include ../include/osx/makeconfig
12 -include ../../include/osx/makeconfig
14 ifeq ($(UNAME), Linux)
15 -include ../include/linux/makeconfig
16 -include ../../include/linux/makeconfig
18 include does_not_exist
22 # Make sure one of those includes worked
24 include there_is_an_include_file_problem
28 # Common between OSX and Linux
31 NACL_BASE:=$(shell pwd | sed 's,/native_client/.*,,')
47 #TODO - put back -Wswitch-enum once gUnit can compile with it
48 # CFLAGS=-fPIC -malign-double -Werror -Wall -g $(OSFLAGS)
49 # it is no longer globally necessary to generate PIC code, RIGHT?!?!?
50 CFLAGS+=-malign-double -Werror -Wall -g -I$(NACL_BASE) $(OSFLAGS)
55 PLATFORM_TEMP_FILES=*.nexe *.i