Skip to content
Snippets Groups Projects
Commit 55c4cece authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Depend on .o file and link it.

When using $^, all the auto-dependencies are included in the link
command-line, which includes sbj.c and all the .h files, causing
the link to fail if dependencies exist.
parent e7d411e0
No related branches found
No related tags found
No related merge requests found
Pipeline #5841 passed
......@@ -30,8 +30,8 @@ $(SBJ): $(OBJS)
endif
$(QUIET)$(CC) $(MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(LDFLAGS) $^ -o $@ $(XPDEV-MT_LIBS)
$(SBJCLEAN): sbjclean.c
$(SBJCLEAN): sbjclean.o
ifndef bcc
@echo Linking $@
endif
$(QUIET)$(CC) $(CFLAGS) $(XPDEV_LDFLAGS) $(LDFLAGS) $^ -o $@ $(XPDEV_LIBS)
$(QUIET)$(CC) $(CFLAGS) $(XPDEV_LDFLAGS) $(LDFLAGS) sbjclean.o -o $@ $(XPDEV_LIBS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment