From 580012e1c9f74c9833dbc0451e67711650bac116 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Tue, 19 Mar 2024 16:34:30 +0300 Subject: [PATCH] Makefile: small clean-ups --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 2a9eae9..38c8fab 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,6 +24,7 @@ C_OPT = -Wall -Og -Wmissing-declarations -Wwrite-strings -fpic \ LINK_OPT = $(shell pkg-config --libs dj64) -shared -Wl,-Bsymbolic \ -Wl,-rpath=/usr/local/i386-pc-dj64/lib64 \ -Wl,-rpath=/usr/i386-pc-dj64/lib64 +DOSLDFLAGS = --whole-archive $(shell pkg-config --static --libs dj64static) SRCS = command.c cmdbuf.c ms.c version.c thunks_a.c thunks_c.c OBJS = $(SRCS:.c=.o) ASSRCS = int23.S int0.S asm.S plt.S mouse.S @@ -68,7 +69,7 @@ $(LIBCMD): $(OBJS) objcopy --add-gnu-debuglink=$(DBG) $@ || $(RM) $@ $(ELF): $(ASOBJS) - $(DOS_LD) $(ASOBJS) --whole-archive $(shell pkg-config --static --libs dj64static) -o $@ + $(DOS_LD) $^ $(DOSLDFLAGS) -o $@ $(DOS_STRIP) $@ $(CMD): $(LIBCMD) $(ELF)