diff --git a/subdir.mak b/subdir.mak index 6b098cdb67..03c852a09e 100644 --- a/subdir.mak +++ b/subdir.mak @@ -20,7 +20,7 @@ INCINSTDIR := $(INCDIR)/lib$(NAME) define RULES $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o - $(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS) + $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $(SUBDIR)%-test.o: $(SUBDIR)%.c $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^