Hi,
On Wed Dec 03, 2025 at 22:50:01 +0200, Baruch Burstein wrote:
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.mkWhat is the right way to do this?
Like this:
PKGDIR = ../.. L4DIR ?= $(PKGDIR)/../..
TARGET = app1 app2 SRC_CC_app1 = app1.cc common.cc SRC_CC_app2 = app2.cc common.cc REQUIRES_LIBS = libio cxx_libc_io cxx_io libstdc++
BR, Adam