httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <>
Subject OS specific headers
Date Sun, 14 Sep 1997 11:59:06 GMT
At the moment, the OS specific directories (os/*) are responsible for
copying any required OS-specific header files to $(INCDIR). This makes the
OS macros, inlines and function prototypes available to all other source

But I've just realised I made it *COPY* these files, when symbolic links
would be better to stop people accidently editing the wrong file. I am not
sure why I didn't do this to start with. Anywhere here is a patch to
link the OS specific files from $(INCDIR) to their real location.


Index: Makefile.tmpl
RCS file: /export/home/cvs/apachen/src/os/unix/Makefile.tmpl,v
retrieving revision 1.6
diff -u -r1.6 Makefile.tmpl
--- Makefile.tmpl	1997/09/12 13:35:29	1.6
+++ Makefile.tmpl	1997/09/14 11:55:54
@@ -5,12 +5,17 @@
 OBJS=	os.o os-inline.o
+COPY=	os.h os-inline.c
 LIB=	libos.a
-all:	$(LIB)
-	cp os.h ../../main
-	cp os-inline.c ../../main
+all:	$(LIB) copy
+	for i in $(COPY); do  \
+		rm -f $(INCDIR)/$$i ;\
+		ln -s `pwd`/$$i $(INCDIR)/$$i ;\
+	done
 $(LIB): $(OBJS)
 	rm -f $@
@@ -26,4 +31,4 @@
 $(OBJS): Makefile
-os.o:	os.c
+os.o:	os.c os-inline.c

View raw message