Sha256: df9f010a15753b1d8666e3c3b96a9514ba886096e9ff68bfbb58af8cf3107033

Contents?: true

Size: 1.39 KB

Versions: 13

Compression:

Stored size: 1.39 KB

Contents

# Environment
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
RANLIB=ranlib
CC=gcc
CCC=g++
CXX=g++

# Windows (mingw)?
ifneq (,$(findstring mingw, $(CONF)))
MINGW := true
endif

# Macros
ifndef CND_PLATFORM
CND_PLATFORM=$(shell uname -s)
endif

# Include project Makefile
include Makefile

# Object Directory
OBJECTDIR=build/${CONF}/${CND_PLATFORM}

# Object Files
OBJECTFILES = ${OBJECTDIR}/argparser.o		\
	      ${OBJECTDIR}/utilsfuncs.o		\
	      ${OBJECTDIR}/ng.o			\
	      ${OBJECTDIR}/strlcpy.o	\
	      ${OBJECTDIR}/jrubyexe.o

ifdef JAVA_HOME
JAVA_INCLUDE = $(subst \,/,${JAVA_HOME})/include
INCLUDES = "-I${JAVA_INCLUDE}"
endif

ifdef MINGW
OBJECTFILES += ${OBJECTDIR}/utilsfuncswin.o	\
	       ${OBJECTDIR}/platformlauncher.o	\
	       ${OBJECTDIR}/jvmlauncher.o	\
	       ${OBJECTDIR}/jruby.o
INCLUDES += "-I${JAVA_INCLUDE}/win32"
else
OBJECTFILES += ${OBJECTDIR}/unixlauncher.o
endif

CFLAGS += -O2 -Wall $(INCLUDES)
CCFLAGS = $(CFLAGS)
CXXFLAGS = $(CFLAGS)

# Compiler Flags
ifeq (mingw,$(CONF))
CFLAGS += -m32 -s
endif
ifeq (mingw64,$(CONF))
CFLAGS += -m64 -s
endif

# Resources
WINDRES = windres

# Link Libraries and Options
LDLIBSOPTIONS = -lstdc++

ifdef MINGW
LDLIBSOPTIONS += -lws2_32 -static-libgcc -Wl,--enable-auto-import -Wl,-Bstatic -Wl,-Bdynamic -static
PROGRAM = jruby.dll
else
PROGRAM = jruby
endif

ifneq (,$(findstring SunOS,$(CND_PLATFORM)))
CFLAGS += -D__SUNOS__
LDLIBSOPTIONS += -lsocket -lnsl
endif

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jruby-launcher-1.1.8-java inc/Makefile-conf.mk
jruby-launcher-1.1.7-java inc/Makefile-conf.mk
jruby-launcher-1.1.6-java inc/Makefile-conf.mk
jruby-launcher-1.1.5-java inc/Makefile-conf.mk
jruby-launcher-1.1.4-java inc/Makefile-conf.mk
jruby-launcher-1.1.3-java inc/Makefile-conf.mk
jruby-launcher-1.1.1-java inc/Makefile-conf.mk
jruby-launcher-1.1.0-java inc/Makefile-conf.mk
jruby-launcher-1.0.19-java inc/Makefile-conf.mk
jruby-launcher-1.0.18-java inc/Makefile-conf.mk
jruby-launcher-1.0.18.pre1-java inc/Makefile-conf.mk
jruby-launcher-1.0.17-java inc/Makefile-conf.mk
jruby-launcher-1.0.16-java inc/Makefile-conf.mk