Skip to content

Commit

Permalink
Merge branch 'master' into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgw0316 committed Apr 29, 2018
2 parents 7eec13a + 5e779d1 commit 82ecd02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions lightcrafts/jnisrc/jni.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@
##
# Undefine all this stuff so we don't get any defaults.
##
CFLAGS=
DEFINES:=
INCLUDES:=
LDFLAGS:=
LINK:=

COMMON_DIR:= $(ROOT)/lightcrafts
Expand Down
4 changes: 1 addition & 3 deletions lightcrafts/mk/executable.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ EXECUTABLE:=1
##
# Undefine all this stuff so we don't get any defaults.
##
CFLAGS:=
DEFINES:=
INCLUDES:=
LDFLAGS:=
LINK:=

COMMON_DIR:= $(ROOT)/lightcrafts
Expand All @@ -61,7 +59,7 @@ else
endif

DEFINES:= $(EXEC_EXTRA_DEFINES)
INCLUDES:= $(EXEC_EXTRA_INCLUDES)
INCLUDES:= $(PLATFORM_INCLUDES) $(EXEC_EXTRA_INCLUDES)
LDFLAGS:= $(PLATFORM_LDFLAGS) -L$(COMMON_DIR)/products \
$(EXEC_EXTRA_LDFLAGS)
LINK:= $(EXEC_EXTRA_LINK)
Expand Down
9 changes: 5 additions & 4 deletions lightcrafts/mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ ifneq ($(USE_ICC),1)
USE_ICC_HERE:=
endif

# The initial set of CFLAGS. (Must not use := here!)
PLATFORM_CFLAGS= -g
# The initial set of CFLAGS and LDFLAGS. (Must not use := here!)
PLATFORM_CFLAGS= $(CFLAGS) -g
PLATFORM_LDFLAGS= $(LDFLAGS)

# Default symlink command. This needs to be defined as a function variable
# rather than just a simple variable because of the way it's overridden for
Expand Down Expand Up @@ -103,7 +104,7 @@ ifeq ($(PLATFORM),MacOSX)
MACOSX_ISYSROOT=
MACOSX_SYSLIBROOT=
endif
PLATFORM_LDFLAGS= $(MACOSX_SYSLIBROOT)
PLATFORM_LDFLAGS+= $(MACOSX_SYSLIBROOT)

##
# These are to be only the bare minimum architecture-specific CFLAGS. High-
Expand Down Expand Up @@ -305,7 +306,7 @@ ifeq ($(PLATFORM),$(filter $(PLATFORM),Linux FreeBSD SunOS))
JAVA_INCLUDES:= -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd
NUM_PROCESSORS:= $(shell dmesg | grep '^cpu' | wc -l)
PLATFORM_INCLUDES= -I/usr/local/include
PLATFORM_LDFLAGS= -L/usr/local/lib
PLATFORM_LDFLAGS+= -L/usr/local/lib
else ifeq ($(PLATFORM),SunOS)
JAVA_INCLUDES:= -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
NUM_PROCESSORS:= $(shell psrinfo -p)
Expand Down

0 comments on commit 82ecd02

Please sign in to comment.