Sha256: 6e824f5c2cae852ff1364d725afe63f9544d5114508fb41b6380539742f175ad

Contents?: true

Size: 1.4 KB

Versions: 10

Compression:

Stored size: 1.4 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 -mno-cygwin -s
endif
ifeq (mingw64,$(CONF))
CFLAGS += -m64 -mno-cygwin -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
PROGRAM = jruby.dll
else
PROGRAM = jruby
endif

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jruby-launcher-1.0.14-java inc/Makefile-conf.mk
jruby-launcher-1.0.13-java inc/Makefile-conf.mk
jruby-launcher-1.0.12-java inc/Makefile-conf.mk
jruby-launcher-1.0.11-java inc/Makefile-conf.mk
jruby-launcher-1.0.10-java inc/Makefile-conf.mk
jruby-launcher-1.0.9-java inc/Makefile-conf.mk
jruby-launcher-1.0.8-java inc/Makefile-conf.mk
jruby-launcher-1.0.7-java inc/Makefile-conf.mk
jruby-launcher-1.0.6-java inc/Makefile-conf.mk
jruby-launcher-1.0.5-java inc/Makefile-conf.mk