diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 02:40:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-04 02:40:04 +0000 |
commit | b1b1f3ded2e0150fbbbd26a6dd9ef3bc41714ecb (patch) | |
tree | b41a9db77eec21cf58039e275fda96ab2b17b2bb /defs | |
parent | 1f3ec6d858e649808079e57fe10ca93a943e1647 (diff) | |
download | ruby-b1b1f3ded2e0150fbbbd26a6dd9ef3bc41714ecb.tar.gz |
des_tables.c: generation rule
* defs/gmake.mk (missing/des_tables.c): move the recipe from
common.mk. this is less common.
* missing/crypt.c (init_des): if des_tables.c is empty, initialize
DES tables at runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r-- | defs/gmake.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk index b5acb48576..ba68dc19b9 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -77,3 +77,15 @@ sudo-precheck: test install-prereq: sudo-precheck yes-test-all no-test-all: install endif + +$(srcdir)/missing/des_tables.c: $(srcdir)/missing/crypt.c +ifeq ($(if $(CC),$(CROSS_COMPILING),yes),yes) + touch $@ +else + @$(ECHO) building make_des_table + $(Q) $(PURIFY) $(CC) $(CPPFLAGS) -DDUMP $(LDFLAGS) $(XLDFLAGS) $(LIBS) $(OUTFLAG)make_des_table $(srcdir)/missing/crypt.c + @$(ECHO) generating $@ + $(Q) $(MAKEDIRS) $(@D) + $(Q) ./make_des_table > $@ + $(Q) $(RMALL) make_des_table* +endif |