use make default linker naming convention (#6787)
This commit is contained in:
parent
85b00aff56
commit
2c584cdb3d
1 changed files with 5 additions and 5 deletions
|
|
@ -4,8 +4,8 @@
|
||||||
# "# Template is in tools/niminst/makefile.tmpl\n" &
|
# "# Template is in tools/niminst/makefile.tmpl\n" &
|
||||||
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
|
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
|
||||||
|
|
||||||
CC = gcc
|
CC ??= gcc
|
||||||
LINKER = gcc
|
LD ??= gcc
|
||||||
COMP_FLAGS = $(CPPFLAGS) $(CFLAGS) ?{c.ccompiler.flags}
|
COMP_FLAGS = $(CPPFLAGS) $(CFLAGS) ?{c.ccompiler.flags}
|
||||||
LINK_FLAGS = $(LDFLAGS) ?{c.linker.flags}
|
LINK_FLAGS = $(LDFLAGS) ?{c.linker.flags}
|
||||||
binDir = ?{firstBinPath(c).toUnix}
|
binDir = ?{firstBinPath(c).toUnix}
|
||||||
|
|
@ -29,7 +29,7 @@ endif
|
||||||
ifeq ($(uos),freebsd)
|
ifeq ($(uos),freebsd)
|
||||||
myos= freebsd
|
myos= freebsd
|
||||||
CC = clang
|
CC = clang
|
||||||
LINKER = clang
|
LD = clang
|
||||||
LINK_FLAGS += -lm
|
LINK_FLAGS += -lm
|
||||||
endif
|
endif
|
||||||
ifeq ($(uos),openbsd)
|
ifeq ($(uos),openbsd)
|
||||||
|
|
@ -43,7 +43,7 @@ endif
|
||||||
ifeq ($(uos),darwin)
|
ifeq ($(uos),darwin)
|
||||||
myos = macosx
|
myos = macosx
|
||||||
CC = clang
|
CC = clang
|
||||||
LINKER = clang
|
LD = clang
|
||||||
LINK_FLAGS += -ldl -lm
|
LINK_FLAGS += -ldl -lm
|
||||||
ifeq ($(HOSTTYPE),x86_64)
|
ifeq ($(HOSTTYPE),x86_64)
|
||||||
ucpu = amd64
|
ucpu = amd64
|
||||||
|
|
@ -171,7 +171,7 @@ endif
|
||||||
|
|
||||||
?{"$(binDir)/" & toLowerAscii(c.name)}: $(oFiles)
|
?{"$(binDir)/" & toLowerAscii(c.name)}: $(oFiles)
|
||||||
@mkdir -p $(binDir)
|
@mkdir -p $(binDir)
|
||||||
$(LINKER) -o $@ $^ $(LINK_FLAGS)
|
$(LD) -o $@ $^ $(LINK_FLAGS)
|
||||||
@echo "SUCCESS"
|
@echo "SUCCESS"
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue