diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-14 06:40:07 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-14 06:40:07 +0000 |
commit | a4011d6dfd529fd33e330435aa80f89974163ee3 (patch) | |
tree | d4f70b5ae7a2241e1bfff696ec914f241741062a /shmem | |
parent | b2e12e019e966972c1edab8eb0f5a8b897392bb9 (diff) | |
download | libapr-a4011d6dfd529fd33e330435aa80f89974163ee3.tar.gz |
Fix OS/2 build after the move of private APR headers to the include/arch/
area. This also messes with some unix stuff where it's shared with OS/2.
The strategy used to get the right platform specific include files is:
- Every Makefile.in contains something like
OSDIR=$(INCDIR)/arch/@OSDIR@
DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@
INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR)
- all APR private includes look like #include "fileio.h", ie no leading
arch directory so no #ifdef'ing needed in shared .c files.
This ensures that the include file for the target platform is always used
if it exists, otherwise the default is used.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60720 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/os2/Makefile.in | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/shmem/os2/Makefile.in b/shmem/os2/Makefile.in index 8e597864a..159f5a5bb 100644 --- a/shmem/os2/Makefile.in +++ b/shmem/os2/Makefile.in @@ -9,7 +9,9 @@ CFLAGS=@CFLAGS@ @OPTIM@ LIBS=@LIBS@ LDFLAGS=@LDFLAGS@ $(LIBS) INCDIR=../../include -INCLUDES=-I$(INCDIR) +OSDIR=$(INCDIR)/arch/@OSDIR@ +DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ +INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) LIB=shmem.a @@ -41,15 +43,16 @@ depend: cp Makefile.in Makefile.in.bak \ && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in > Makefile.new \ && gcc -MM $(INCLUDES) $(CFLAGS) *.c | sed -e "s%\\\\\(.\)%/\\1%g" >> Makefile.new \ - && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \ - -e '1,$$s: $(INCDIR1)/: $$(INCDIR1)/:g' \ - -e '1,$$s: $(INCDIR2)/: $$(INCDIR2)/:g' \ - -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \ + && sed -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' \ + -e '1,$$s: $(DEFOSDIR)/: $$(DEFOSDIR)/:g' \ + -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' Makefile.new \ > Makefile.in \ && rm Makefile.new # DO NOT REMOVE -shmem.o: shmem.c $(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \ - $(INCDIR1)/apr_errno.h $(INCDIR1)/apr_shmem.h \ - $(INCDIR1)/apr_lib.h $(INCDIR1)/apr_file_io.h \ - $(INCDIR1)/apr_time.h $(INCDIR1)/apr_thread_proc.h +shmem.o: shmem.c $(INCDIR)/apr_general.h $(INCDIR)/apr.h \ + $(INCDIR)/apr_errno.h $(INCDIR)/../network_io/os2/os2nerrno.h \ + $(INCDIR)/apr_shmem.h $(INCDIR)/apr_lib.h \ + $(INCDIR)/apr_pools.h $(INCDIR)/apr_thread_proc.h \ + $(INCDIR)/apr_file_io.h $(INCDIR)/apr_time.h \ + $(INCDIR)/apr_tables.h $(INCDIR)/apr_strings.h |