Skip to content

Commit

Permalink
make: static link can now be enabled by dj64.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jun 13, 2024
1 parent 649da08 commit f254228
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ AS_OBJECTS = $(AS_SOURCES:.S=.o)
CMD = comcom64.exe
DBG = dosemu_$(CMD).dbg
REVISIONID := $(shell git describe --dirty=+)
ifeq ($(DJ64STATIC),1)
STEXT = \(static_link\)
endif
CFLAGS += -DREV_ID=\"$(REVISIONID)$(STEXT)\"

.PHONY: all clean install uninstall
Expand Down Expand Up @@ -52,6 +49,10 @@ else
include $(DJMK)
endif

ifeq ($(DJ64STATIC),1)
STEXT = \(static_link\)
endif

$(CMD): $(DJ64_XOBJS)
./link.sh djlink $(DJ64_XELF) $(DJ64_XLIB) $(DBG) $@ $(CMD) \
$(DJ64_XLDFLAGS)

0 comments on commit f254228

Please sign in to comment.