mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
introduce target flags for linking step
This commit is contained in:
4
makefile
4
makefile
@@ -31,9 +31,11 @@ endif
|
|||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
ifeq ($(ARCH),linux-x86_64)
|
ifeq ($(ARCH),linux-x86_64)
|
||||||
CFLAGS += -target x86_64-pc-linux-gnu
|
CFLAGS += -target x86_64-pc-linux-gnu
|
||||||
|
LDFLAGS += -target x86_64-pc-linux-gnu
|
||||||
RSFLAGS += --target=x86_64-unknown-linux-gnu
|
RSFLAGS += --target=x86_64-unknown-linux-gnu
|
||||||
else ifeq ($(ARCH),win-x86_64)
|
else ifeq ($(ARCH),win-x86_64)
|
||||||
CFLAGS += -target x86_64-pc-windows-gnu
|
CFLAGS += -target x86_64-pc-windows-gnu
|
||||||
|
LDFLAGS += -target x86_64-pc-windows-gnu
|
||||||
RSFLAGS += --target=x86_64-pc-windows-gnu
|
RSFLAGS += --target=x86_64-pc-windows-gnu
|
||||||
EXT := .exe
|
EXT := .exe
|
||||||
else
|
else
|
||||||
@@ -73,7 +75,7 @@ $(TARGET): $(C_OBJ) $(RS_OBJ)
|
|||||||
@$(call wr_colour,"LDFLAGS: '$(LDFLAGS)'",94)
|
@$(call wr_colour,"LDFLAGS: '$(LDFLAGS)'",94)
|
||||||
@$(call wr_colour,"linking to: '$@'",92)
|
@$(call wr_colour,"linking to: '$@'",92)
|
||||||
|
|
||||||
@$(CC) $(LDFLAGS) $(C_OBJ) $(RS_OBJ) -o $(TARGET)
|
@$(CC) $(LDFLAGS) -o $@ $(C_OBJ) $(RS_OBJ)
|
||||||
@$(call wr_colour,"current profile: '$(PROF)'",93)
|
@$(call wr_colour,"current profile: '$(PROF)'",93)
|
||||||
|
|
||||||
# create .o and .d files for C sources
|
# create .o and .d files for C sources
|
||||||
|
|||||||
Reference in New Issue
Block a user