diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-17 08:03:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-17 08:03:59 +0000 |
commit | ef7784a62d2ecd681b37aee7040e71bbb34a51cd (patch) | |
tree | 92daacce553b174393de87921912ada04a4ecb6e /make/openssh.mk | |
parent | 8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff) |
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/openssh.mk')
-rw-r--r-- | make/openssh.mk | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/make/openssh.mk b/make/openssh.mk index 024c8b073..01fda9282 100644 --- a/make/openssh.mk +++ b/make/openssh.mk @@ -21,37 +21,40 @@ $(OPENSSH_DIR)/.patched: $(OPENSSH_DIR)/.unpacked touch $(OPENSSH_DIR)/.patched $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.patched - (cd $(OPENSSH_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \ - ./configure \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - --libexecdir=/usr/lib \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --libdir=/usr/lib \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --includedir=$(STAGING_DIR)/include \ - --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx \ - --disable-nls --without-x); + (cd $(OPENSSH_DIR); rm -rf config.cache; \ + PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --disable-nls \ + --includedir=$(STAGING_DIR)/include \ + --disable-lastlog --disable-utmp \ + --disable-utmpx --disable-wtmp --disable-wtmpx \ + --disable-nls --without-x \ + ); touch $(OPENSSH_DIR)/.configured $(OPENSSH_DIR)/ssh: $(OPENSSH_DIR)/.configured - make CC=$(TARGET_CC1) -C $(OPENSSH_DIR) + $(MAKE) CC=$(TARGET_CC1) -C $(OPENSSH_DIR) -$(STRIP) --strip-unneeded $(OPENSSH_DIR)/*.so* $(TARGET_DIR)/usr/bin/ssh: $(OPENSSH_DIR)/ssh - make CC=$(TARGET_CC1) DESTDIR=$(TARGET_DIR) -C $(OPENSSH_DIR) install + $(MAKE) CC=$(TARGET_CC1) DESTDIR=$(TARGET_DIR) -C $(OPENSSH_DIR) install rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc openssh: $(TARGET_DIR)/usr/bin/ssh openssh-clean: - make -C $(OPENSSH_DIR) clean + $(MAKE) -C $(OPENSSH_DIR) clean openssh-dirclean: rm -rf $(OPENSSH_DIR) |