From: Guenter Knauf Date: Thu, 19 Apr 2012 11:53:59 +0000 (+0000) Subject: First step to make cross compilation a bit easier. X-Git-Tag: 2.5.0-alpha~7130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9c61332383bdad67d93e09e418e7a1af1953f6;p=thirdparty%2Fapache%2Fhttpd.git First step to make cross compilation a bit easier. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1327907 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/Makefile.in b/server/Makefile.in index 6511af2bf0f..69761c295aa 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -27,9 +27,14 @@ TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) export_vars.h htt include $(top_builddir)/build/rules.mk include $(top_srcdir)/build/library.mk +ifdef CC_FOR_BUILD +gen_test_char: gen_test_char.c + $(CC_FOR_BUILD) -DCROSS_COMPILE -o $@ $< +else gen_test_char_OBJECTS = gen_test_char.lo gen_test_char: $(gen_test_char_OBJECTS) $(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS) +endif test_char.h: gen_test_char ./gen_test_char > test_char.h