Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/32/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PRJ = comcom32
TOOLC = dj32
STRIP = djstrip
DJSTRIP = djstrip
srcdir ?= ..
include ../makefile.inc
2 changes: 1 addition & 1 deletion src/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PRJ = comcom64
TOOLC = dj64
STRIP = @true
DJSTRIP = @true
include makefile.inc
11 changes: 10 additions & 1 deletion src/makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,19 @@ ifeq ($(DJ64STATIC),1)
DJCFLAGS += -DSTATIC_LINK
endif

ifeq ($(TOOLC),dj32)
ifneq ($(CROSS_PREFIX),)
# for djlink on arm
export READELF = $(CROSS_PREFIX)readelf
export OBJCOPY = $(CROSS_PREFIX)objcopy
export STRIP = $(CROSS_PREFIX)strip
endif
endif

ifneq ($(LINK),)
$(RCMD): $(DJ64_XLIB)
$(srcdir)/link.sh $(LINK) $^ $(DBG) $@ $(DJ64_XLDFLAGS)
$(STRIP) $@
$(DJSTRIP) $@

info: $(RCMD)
djstubify -i $<
Expand Down