Compare commits

2 Commits

Author SHA1 Message Date
8007299886 silent $(AR) 2023-12-30 12:31:59 +01:00
bb8509fc00 shared lib: use all objects. 2023-12-30 11:47:34 +01:00

View File

@@ -198,11 +198,11 @@ cleanlibdir:
$(DLIB): LDFLAGS += -shared $(DLIB): LDFLAGS += -shared
$(DLIB): $(OBJ) | $(LIBDIR) $(DLIB): $(OBJ) | $(LIBDIR)
@echo "building shared library ($@)." @echo "building shared library ($@)."
$(CC) $(CFLAGS) $(LDFLAGS) $? -o $@ @$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
$(SLIB): $(OBJ) | $(LIBDIR) $(SLIB): $(OBJ) | $(LIBDIR)
@echo "building static library ($@)." @echo "building static library ($@)."
$(AR) $(ARFLAGS) $@ $? > /dev/null @$(AR) $(ARFLAGS) $@ $? > /dev/null
##################################### tests ##################################### tests
.PHONY: testbins cleanbin cleanbindir .PHONY: testbins cleanbin cleanbindir