Controlling the order of the recursed directories

I used the two macros of EARLY_DIRS and LATE_DIRS to control the order
of the recursed dirctories as following:

EARLY_DIRS= wlibsrv libart libtty libutil libx libr
LATE_DIRS=test_client gserver

I need to make “libutil” first, “libtty” second and then the rest of the
other directories in the list of directories of EARLY_DIRS.

Since these macros treat the list of directories as a group and there is
no ordering within the group( only alphabetic order, I think).
Is there any way to work around this?

Thanks for any help.

-Beth

Beth <id@address.com> wrote:

I used the two macros of EARLY_DIRS and LATE_DIRS to control the order
of the recursed dirctories as following:

EARLY_DIRS= wlibsrv libart libtty libutil libx libr
LATE_DIRS=test_client gserver

I need to make “libutil” first, “libtty” second and then the rest of the
other directories in the list of directories of EARLY_DIRS.

Since these macros treat the list of directories as a group and there is
no ordering within the group( only alphabetic order, I think).
Is there any way to work around this?

Not without introducing an additional directory level, sorry.

Create a lib directory and put wlibsrv, libart, libtty, libutil, libx, libr
under it. In your Makefile, say “EARLY_DIRS=lib”. In the lib directory,
create a new recursing Makefile and put “EARLY_DIRS=libutil” and
“LATE_DIRS=wlibsrv libart libx libr” in it.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Thanks for your quick response.

Would PRE_TARGET macro help in this situation?

-Beth

Brian Stecher wrote:

Beth <> id@address.com> > wrote:
I used the two macros of EARLY_DIRS and LATE_DIRS to control the order
of the recursed dirctories as following:

EARLY_DIRS= wlibsrv libart libtty libutil libx libr
LATE_DIRS=test_client gserver

I need to make “libutil” first, “libtty” second and then the rest of the
other directories in the list of directories of EARLY_DIRS.

Since these macros treat the list of directories as a group and there is
no ordering within the group( only alphabetic order, I think).
Is there any way to work around this?

Not without introducing an additional directory level, sorry.

Create a lib directory and put wlibsrv, libart, libtty, libutil, libx, libr
under it. In your Makefile, say “EARLY_DIRS=lib”. In the lib directory,
create a new recursing Makefile and put “EARLY_DIRS=libutil” and
“LATE_DIRS=wlibsrv libart libx libr” in it.


Brian Stecher (> bstecher@qnx.com> ) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Beth <id@address.com> wrote:

Thanks for your quick response.

Would PRE_TARGET macro help in this situation?

Possibly - it’d be very tricky. You’d have to figure out the directory of
the library you want to build and do a "make -C " on it.

-Beth

Brian Stecher wrote:

Beth <> id@address.com> > wrote:
I used the two macros of EARLY_DIRS and LATE_DIRS to control the order
of the recursed dirctories as following:

EARLY_DIRS= wlibsrv libart libtty libutil libx libr
LATE_DIRS=test_client gserver

I need to make “libutil” first, “libtty” second and then the rest of the
other directories in the list of directories of EARLY_DIRS.

Since these macros treat the list of directories as a group and there is
no ordering within the group( only alphabetic order, I think).
Is there any way to work around this?

Not without introducing an additional directory level, sorry.

Create a lib directory and put wlibsrv, libart, libtty, libutil, libx, libr
under it. In your Makefile, say “EARLY_DIRS=lib”. In the lib directory,
create a new recursing Makefile and put “EARLY_DIRS=libutil” and
“LATE_DIRS=wlibsrv libart libx libr” in it.


Brian Stecher (> bstecher@qnx.com> ) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8


Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8