Commit 2bcb4f4a authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

Fix compilation of static libraries

parent a9a4d2be
......@@ -251,7 +251,13 @@ LDFLAGS += -lm
all: $(TARGET)
$(TARGET): $(OBJECTS)
ifeq ($(platform), emscripten)
$(LD) $(fpic) $(SHARED) $(LDFLAGS) $(LINKOUT)$@ $(OBJECTS) $(LIBS)
else ifeq ($(STATIC_LINKING),1)
$(AR) rcs $@ $(OBJECTS)
else
$(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) $(LDFLAGS)
endif
%.o: %.c
$(CC) $(fpic) $(CFLAGS) $(INCFLAGS) -c -o $@ $<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment