info-inventor-dev
[Top] [All Lists]

Build tree quoestion

To: OpenInventor Devel List <info-inventor-dev@xxxxxxxxxxx>
Subject: Build tree quoestion
From: "J . A . Magallon" <jamagallon@xxxxxxx>
Date: Sun, 19 Nov 2000 02:28:32 +0100
Reply-to: jamagallon@xxxxxxx
Sender: owner-info-inventor-dev@xxxxxxxxxxx
Hi everyone. I am new to the list, so sorry for any inconvenience.

I have tried to build OIV on a Mandrake 7.2 system (g++ 2.96, XFree4.0.1,
GLU from Mesa-common-3.4).
There a a couple of questions. 

The tree does not build directly. I uses the old polygon tesselator in
GLU1.1-mode, and GLU from Mesa3.4 is 1.2. I have almost done the changes
on a CVS version dated Nov19 (easy, just a couple of #ifdef GLU_VERSION_1_1).
Same is happening with texture objects: texgen is an EXT (glTexGenEXT)
prior to GL 1.1, but a mandatory proc in 1.1+ (glTexGen). Same with
BindTexture.

And a question-suggestion: is system intended to be built with GNUmake, and
ONLY gnumake (don't know if the source tree is going to be used on SGI ?
If the answer is yes, the makefiles could be cleaned-simplified (I have read
in the list about somebody working on autoconf/automake, but in the interin
I can send small patches to clean the thing). They are small changes,
for example not doing things like 'cd dir && make' but 'make -Cdir',
and even other features of GNU make like VPATH and so on. BTW, if anyone
likes the pathes, here go...(apply in src tree root)

=========== patch-commondefs
--- make/commondefs.org Sun Nov 19 01:41:58 2000
+++ make/commondefs     Sun Nov 19 02:03:22 2000
@@ -663,14 +663,7 @@
 # are not present. This is useful with mandefs/rules
 #
 SUBDIR_MAKERULE= \
-       if test ! -d $$d; then \
-               if test "$(NOSUBMESG)" = "" ; then \
-                       echo "SKIPPING $$d: No such directory."; \
-               fi \
-       else \
-               echo "  (cd $$d && $(MAKE) $${RULE:=$@})"; \
-               (cd $$d && ${MAKE} $${RULE:=$@}) || exit 1; \
-       fi
+       $(MAKE) -C$$d $${RULE:=$@}
 
 SUBDIRS_MAKERULE= \
        @for d in $(SUBDIRS); do $(SUBDIR_MAKERULE); done
@@ -695,14 +688,7 @@
 #              @$(NSUBDIR_MAKERULE)
 
 NSUBDIR_MAKERULE= \
-        if test ! -d $@; then \
-                if test "$(NOSUBMESG)" = "" ; then \
-                        echo "SKIPPING $@: No such directory."; \
-                fi \
-        else \
-                echo " (cd $@; $(MAKE) $(__DORULE))"; \
-                (cd $@; ${MAKE} $(__DORULE)); \
-        fi
+       -$(MAKE) -C$@ $(__DORULE)
 
 #
 # The macro naming commonrules' always-unsatisfied target, which is useful

=================== patch-ivcommonrules
--- make/ivcommonrules.org      Sun Nov 19 01:45:31 2000
+++ make/ivcommonrules  Sun Nov 19 02:04:36 2000
@@ -25,7 +25,7 @@
        $(LD) $(LDDSOOPTS) $^ $(LDLIBS) $(POST_LDDSOOPTS) -o $@
 
 $(LARCHIVE):
-       for i in $(SUBDIRS); do (cd $$i && $(MAKE) all) || exit 1; done
+       for i in $(SUBDIRS); do $(MAKE) -C$$i all; done
        $(RM) $(LARCHIVE)
        $(AR) $(ARFLAGS) $(LARCHIVE) $(OBJECTS)
 


-- 
Juan Antonio Magallon Lacarta                                 #> cd /pub
mailto:jamagallon@xxxxxxx                                     #> more beer


<Prev in Thread] Current Thread [Next in Thread>
  • Build tree quoestion, J . A . Magallon <=