Commit 5502da0d authored by Brian Havard's avatar Brian Havard
Browse files

OS/2: Automate export of global variables from core.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89376 13f79535-47bb-0310-9956-ffa450edef68
parent 0025de6e
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
LIBRARY httpd INITINSTANCE
DESCRIPTION "Apache Server Core"

EXPORTS
  "main"
  "ap_my_generation"
  "ap_restart_time"
  "ap_extended_status"
  "ap_scoreboard_image"
  "ap_conftree"
  "ap_server_root"
  "ap_top_module"

; Some globals from apr & apr-util
  "apr_day_snames"
  "apr_month_snames"
  "apr_global_hook_pool"
  "apr_debug_module_hooks"
  "apr_current_hooking_module"

; One for mod_dav from socket library
  "_swaps"
@@ -26,4 +13,3 @@ EXPORTS
  "_swapl"
  "h_errno"
  "inet_ntoa"
+2 −1
Original line number Diff line number Diff line
@@ -66,9 +66,10 @@ export_vars.h:
exports.lo: exports.c

# Rule to make def file for OS/2 core dll
ApacheCoreOS2.def: exports.c $(top_srcdir)/os/$(OS_DIR)/core_header.def
ApacheCoreOS2.def: exports.c export_vars.h $(top_srcdir)/os/$(OS_DIR)/core_header.def
	cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
	$(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/  "\1"/' >> $@
	$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep "^[a-z]" | sed -e 's/^\(.*\)$$/  "\1"/' >> $@

# Rule to make exp file for AIX DSOs
httpd.exp: exports.c export_vars.h