diff --git a/src/l4/pkg/examples/clntsrv/Makefile b/src/l4/pkg/examples/clntsrv/Makefile index 25c007f9..5aeebaf1 100644 --- a/src/l4/pkg/examples/clntsrv/Makefile +++ b/src/l4/pkg/examples/clntsrv/Makefile @@ -1,7 +1,11 @@ +# Relative path to the directory of this packages (i.e., the clntsrv package). PKGDIR ?= . +# Relative path back to the src/l4 directory. L4DIR ?= $(PKGDIR)/../../.. +# List of all subdirectories that the build system should look at. TARGET = src configs +# The included make script reads the variables defined above to recurse into the subdirectories. include $(L4DIR)/mk/subdir.mk diff --git a/src/l4/pkg/examples/clntsrv/configs/Makefile b/src/l4/pkg/examples/clntsrv/configs/Makefile index 8b47a816..d463f0c6 100644 --- a/src/l4/pkg/examples/clntsrv/configs/Makefile +++ b/src/l4/pkg/examples/clntsrv/configs/Makefile @@ -1,8 +1,11 @@ PKGDIR ?= ../.. L4DIR ?= $(PKGDIR)/../.. +# Specify the subdirectory to put the following assets into. PKGNAME = ex_clntsrv +# Specify our Ned scripts. SRC_ASSETS_NED = clntsrv.cfg +# Specify our module list. SRC_ASSETS_MODLIST = modules.list include $(L4DIR)/mk/assets.mk diff --git a/src/l4/pkg/examples/clntsrv/src/Makefile b/src/l4/pkg/examples/clntsrv/src/Makefile index 3f2348f5..fa2f2125 100644 --- a/src/l4/pkg/examples/clntsrv/src/Makefile +++ b/src/l4/pkg/examples/clntsrv/src/Makefile @@ -1,9 +1,13 @@ PKGDIR ?= .. L4DIR ?= $(PKGDIR)/../../.. +# List of binaries that are generated by this Makefile. TARGET = ex_clntsrv-server ex_clntsrv-client +# The list of source files for each binary. SRC_CC_ex_clntsrv-server = server.cc SRC_CC_ex_clntsrv-client = client.cc +# This is our memory-allocator library we will develop during a later assignment. +# You also need to link to libstdc++ to be able to use some C++ features in the allocator later on. REQUIRES_LIBS = libc_be_mem libstdc++ include $(L4DIR)/mk/prog.mk