summaryrefslogtreecommitdiff
path: root/com32/hdt/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-06-13 09:23:13 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-06-20 16:34:42 +0100
commitfb543aa635ff117187c73ce0ae3dccf8ffe32161 (patch)
tree7be11edbcccb5e44ac621fe4f8bf54a1dbf3bb56 /com32/hdt/Makefile
parent3e7446afe578dcad987076fdd340740d2c2f53d2 (diff)
downloadsyslinux-fb543aa635ff117187c73ce0ae3dccf8ffe32161.tar.gz
com32: Per-object file LDFLAGS
Some object files need to link against the ELF libraries. Allow them to be specified with the following syntax in the Makefiles, LDFLAGS_$(object_file) = $(LIBS) By adding libraries in this way DT_NEEDED entries are created in the ELF modules and the required library dependencies are automatically loaded before running the module. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/hdt/Makefile')
-rw-r--r--com32/hdt/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/hdt/Makefile b/com32/hdt/Makefile
index 36206cd5..ff0fa2e2 100644
--- a/com32/hdt/Makefile
+++ b/com32/hdt/Makefile
@@ -20,6 +20,9 @@ MAKEDIR = $(topdir)/mk
include $(MAKEDIR)/elf.mk
LIBS = ../libupload/libcom32upload.a
+C_LIBS += $(com32)/cmenu/libmenu/libmenu.c32 \
+ $(com32)/libutil/libutil_com.c32 \
+ $(com32)/lib/libcom32.c32 $(com32)/gpllib/libcom32gpl.c32
CFLAGS += -I$(com32)/cmenu/libmenu -I$(com32)
MODULES = hdt.c32