mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 07:35:45 +01:00
fix: testing compilation does not correctly filter out main.o
This commit is contained in:
2
Makefile
2
Makefile
@@ -67,7 +67,7 @@ bin/$(NAME): $(OBJ)
|
|||||||
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|
||||||
# link together a testing binary
|
# link together a testing binary
|
||||||
bin/TEST_$(NAME): $(TOBJ) $(filter-out main.o,$(OBJ))
|
bin/TEST_$(NAME): $(TOBJ) $(filter-out obj/src/main.o,$(OBJ))
|
||||||
$(info [CC/LD] $@)
|
$(info [CC/LD] $@)
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
@$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|||||||
Reference in New Issue
Block a user