2010-11-11 15:46:23 +03:00
|
|
|
V = 0
|
|
|
|
Q1 = $(V:1=)
|
|
|
|
Q = $(Q1:0=@)
|
2016-01-05 03:48:04 +03:00
|
|
|
ECHO1 = $(V:1=@@NULLCMD@)
|
2010-11-11 15:46:23 +03:00
|
|
|
ECHO = $(ECHO1:0=@echo)
|
|
|
|
|
2007-12-24 06:49:56 +03:00
|
|
|
encsrcdir = @srcdir@
|
2007-12-20 11:07:56 +03:00
|
|
|
topdir = .
|
2007-12-30 05:00:59 +03:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2007-12-20 11:07:56 +03:00
|
|
|
libdir = @libdir@
|
2007-12-24 06:49:56 +03:00
|
|
|
top_srcdir = $(encsrcdir:/enc=)
|
|
|
|
srcdir = $(top_srcdir)
|
2020-04-04 21:57:05 +03:00
|
|
|
tooldir = $(top_srcdir)/tool
|
2007-12-15 12:56:59 +03:00
|
|
|
arch = @arch@
|
2007-12-17 11:17:50 +03:00
|
|
|
EXTOUT = @EXTOUT@
|
2007-12-24 06:49:56 +03:00
|
|
|
hdrdir = $(srcdir)/include
|
2007-12-15 12:56:59 +03:00
|
|
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
|
|
|
ENCSODIR = $(EXTOUT)/$(arch)/enc
|
2007-12-24 06:49:56 +03:00
|
|
|
TRANSSODIR = $(ENCSODIR)/trans
|
2007-12-15 12:56:59 +03:00
|
|
|
DLEXT = @DLEXT@
|
|
|
|
OBJEXT = @OBJEXT@
|
2012-05-16 09:39:06 +04:00
|
|
|
LIBEXT = @LIBEXT@
|
2016-07-16 00:26:02 +03:00
|
|
|
TIMESTAMPDIR = $(EXTOUT)/.timestamp
|
|
|
|
ENC_TRANS_D = $(TIMESTAMPDIR)/.enc-trans.time
|
|
|
|
ENC_TRANS_SO_D = $(TIMESTAMPDIR)/.enc-trans.so.time
|
2007-12-15 12:56:59 +03:00
|
|
|
|
2015-01-18 06:56:52 +03:00
|
|
|
BUILTIN_ENCS = enc/ascii.c enc/us_ascii.c\
|
|
|
|
enc/unicode.c enc/utf_8.c
|
2007-12-15 12:56:59 +03:00
|
|
|
|
2015-01-18 06:56:52 +03:00
|
|
|
BUILTIN_TRANSES = enc/trans/newline.trans
|
2008-08-24 19:58:43 +04:00
|
|
|
|
2007-12-20 11:07:56 +03:00
|
|
|
RUBY_SO_NAME = @RUBY_SO_NAME@
|
|
|
|
LIBRUBY = @LIBRUBY@
|
|
|
|
LIBRUBYARG_SHARED = @LIBRUBYARG_SHARED@
|
2007-12-21 05:23:26 +03:00
|
|
|
LIBRUBYARG_STATIC = $(LIBRUBYARG_SHARED)
|
2007-12-20 11:07:56 +03:00
|
|
|
|
2007-12-15 12:56:59 +03:00
|
|
|
empty =
|
2012-05-16 09:39:06 +04:00
|
|
|
AR = @AR@
|
2007-12-15 12:56:59 +03:00
|
|
|
CC = @CC@
|
2013-02-25 10:47:23 +04:00
|
|
|
ARFLAGS = @ARFLAGS@$(empty)
|
2012-05-16 09:39:06 +04:00
|
|
|
RANLIB = @RANLIB@
|
2007-12-15 12:56:59 +03:00
|
|
|
OUTFLAG = @OUTFLAG@$(empty)
|
2007-12-24 06:49:56 +03:00
|
|
|
COUTFLAG = @COUTFLAG@$(empty)
|
2007-12-21 05:23:26 +03:00
|
|
|
CFLAGS = $(CCDLFLAGS) @CFLAGS@ @ARCH_FLAG@
|
2008-06-09 16:14:39 +04:00
|
|
|
cflags = @cflags@
|
|
|
|
optflags = @optflags@
|
|
|
|
debugflags = @debugflags@
|
|
|
|
warnflags = @warnflags@
|
2007-12-21 05:23:26 +03:00
|
|
|
CCDLFLAGS = @CCDLFLAGS@
|
2007-12-17 19:15:46 +03:00
|
|
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(top_srcdir)
|
|
|
|
DEFS = @DEFS@
|
2007-12-20 11:07:56 +03:00
|
|
|
CPPFLAGS = @CPPFLAGS@ -DONIG_ENC_REGISTER=rb_enc_register
|
2007-12-29 19:43:59 +03:00
|
|
|
LDFLAGS = @LDFLAGS@
|
2007-12-15 12:56:59 +03:00
|
|
|
LDSHARED = @LDSHARED@
|
2008-01-15 11:53:07 +03:00
|
|
|
ldflags = $(LDFLAGS)
|
2007-12-29 19:43:59 +03:00
|
|
|
dldflags = @DLDFLAGS@
|
2012-07-23 18:58:42 +04:00
|
|
|
extdldflags = @EXTDLDFLAGS@
|
2007-12-29 19:43:59 +03:00
|
|
|
archflag = @ARCH_FLAG@
|
2012-07-23 18:58:42 +04:00
|
|
|
DLDFLAGS = $(ldflags) $(dldflags) $(extdldflags) $(archflag)
|
2008-08-12 09:25:14 +04:00
|
|
|
RUBY = $(MINIRUBY)
|
2012-07-23 18:58:42 +04:00
|
|
|
TARGET_NAME_ = $(@F) # BSD make seems unable to deal with @F with substitution
|
|
|
|
TARGET_NAME = $(TARGET_NAME_:.@DLEXT@=)
|
|
|
|
TARGET_ENTRY = @EXPORT_PREFIX@Init_$(TARGET_NAME)
|
2007-12-19 20:23:24 +03:00
|
|
|
|
2010-12-21 06:45:21 +03:00
|
|
|
WORKDIRS = @WORKDIRS@
|
2008-08-08 11:44:42 +04:00
|
|
|
|
2011-07-31 18:17:42 +04:00
|
|
|
NULLCMD = @NULLCMD@
|
2007-12-19 20:23:24 +03:00
|
|
|
RM = @RM@
|
2010-07-22 01:26:56 +04:00
|
|
|
RMDIR = @RMDIR@
|
|
|
|
RMDIRS = @RMDIRS@
|
2009-08-14 12:20:13 +04:00
|
|
|
MAKEDIRS = @MAKEDIRS@
|
2007-12-24 06:49:56 +03:00
|
|
|
|
2008-08-12 09:25:14 +04:00
|
|
|
.SUFFIXES: .trans
|
2008-08-05 22:15:52 +04:00
|
|
|
|
2016-02-02 07:39:38 +03:00
|
|
|
all:
|
2008-08-08 11:44:42 +04:00
|
|
|
|
|
|
|
make-workdir:
|
2010-12-29 14:27:36 +03:00
|
|
|
$(Q)$(MAKEDIRS) $(WORKDIRS)
|
2007-12-24 06:49:56 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
|
2010-11-14 11:57:53 +03:00
|
|
|
distclean: clean
|
2010-12-29 14:27:36 +03:00
|
|
|
$(Q)$(RM) enc.mk
|
2010-11-14 11:57:53 +03:00
|
|
|
realclean: distclean clean-srcs
|