Multiple targets in one package
Baruch Burstein <[email protected]> Wed, 3 Dec 2025 22:50:01 +0200
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <CA+34VN+PzXkkE74awk2e-=xaBUabaOHHwhx2_dmO625G7TowCw@mail.gmail.com> |
--===============1198511372889502901== Content-Type: multipart/alternative; boundary="00000000000052aa410645125d3f" --00000000000052aa410645125d3f Content-Type: text/plain; charset="UTF-8" Hi. I am trying to build multiple apps in one package. I tried the following but am getting linker errors (of all things!) ``` PKGDIR ?= ../.. L4DIR ?= $(PKGDIR)/../.. TARGET = app1 SRC_CC = app1.cc common.cc REQUIRES_LIBS = libio cxx_libc_io cxx_io libstdc++ include $(L4DIR)/mk/prog.mk TARGET = app2 SRC_CC = app2.cc common.cc REQUIRES_LIBS = libio cxx_libc_io cxx_io libstdc++ include $(L4DIR)/mk/prog.mk ``` What is the right way to do this? --00000000000052aa410645125d3f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi.<div>I am trying to build multiple apps in one package.= I tried the following but am getting linker errors (of all things!)</div><= div><br></div><div>```</div><div>PKGDIR ?=3D ../..<br>L4DIR ?=3D $(PKGDIR= )/../..<br><br>TARGET =3D app1<br>SRC_CC =3D app1.cc common.cc<br>REQUIRE= S_LIBS =C2=A0 =C2=A0=3D libio cxx_libc_io cxx_io libstdc++<br><br>include $= (L4DIR)/mk/<a href=3D"http://prog.mk">prog.mk</a><br><br>TARGET =3D app2<b= r>SRC_CC =3D app2.cc common.cc<br>REQUIRES_LIBS =C2=A0 =C2=A0=3D libio cxx= _libc_io cxx_io libstdc++<br><br>include $(L4DIR)/mk/<a href=3D"http://prog= .mk">prog.mk</a><br></div><div>```</div><div><br></div><div>What is the rig= ht way to do this?</div></div> --00000000000052aa410645125d3f-- --===============1198511372889502901== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ l4-hackers mailing list -- [email protected] To unsubscribe send an email to [email protected] --===============1198511372889502901==--