mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
Merge pull request #1281 from Izder456/master
Implement LINK variable in Makefile
This commit is contained in:
commit
fc676d906d
5
Makefile
5
Makefile
@ -173,6 +173,9 @@ else
|
|||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# link with CC by default
|
||||||
|
LINK ?= $(CC)
|
||||||
|
|
||||||
default: $(PLAT)
|
default: $(PLAT)
|
||||||
|
|
||||||
web:
|
web:
|
||||||
@ -263,7 +266,7 @@ clean:
|
|||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
$(ENAME): $(BUILD_DIR) $(OBJECTS)
|
$(ENAME): $(BUILD_DIR) $(OBJECTS)
|
||||||
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
$(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
# macOS app bundle
|
# macOS app bundle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user