mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 03:25:45 +01:00
fix: use CC instead of LD, and deprecate LD
this is a bit confusing, since setting `LD=cc` would have the same issue; `ld: -f may not be used without -shared`. So I've got no idea what is going wrong, I guess it's something funky. This works, so we shall stick with this.
This commit is contained in:
5
Makefile
5
Makefile
@@ -5,7 +5,6 @@
|
||||
NAME = mcaselector-lite
|
||||
DEBUG ?= 0
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
|
||||
# setting default compilation flags
|
||||
# some of which are able to be overwritten, others are always appended
|
||||
@@ -69,13 +68,13 @@ lib/obj/%/: lib/%/
|
||||
bin/$(NAME): $(OBJ)
|
||||
$(info [LD] $@)
|
||||
@mkdir -p $(@D)
|
||||
@$(LD) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
# link together a testing binary
|
||||
bin/TEST_$(NAME): $(TOBJ) $(filter-out obj/src/main.o,$(OBJ))
|
||||
$(info [LD] $@)
|
||||
@mkdir -p $(@D)
|
||||
@$(LD) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
obj/res/%.c: res/%
|
||||
$(info [XXD] $@)
|
||||
|
||||
Reference in New Issue
Block a user