Skip to content
Snippets Groups Projects
Commit 9b374316 authored by Mick Jordan's avatar Mick Jordan
Browse files

Makefile fix

parent 6e185a46
Branches
No related tags found
No related merge requests found
...@@ -37,14 +37,16 @@ endif ...@@ -37,14 +37,16 @@ endif
INCLUDE_DIR := $(subst test.native,native,$(TOPDIR))/include INCLUDE_DIR := $(subst test.native,native,$(TOPDIR))/include
all: mkbin $(C_OBJECTS) all: $(C_LIB)
$(C_LIB): $(BIN) $(C_OBJECTS)
ifneq ($(shell uname), Darwin) ifneq ($(shell uname), Darwin)
gcc -fPIC -shared -o $(C_LIB) $(C_OBJECTS) gcc -fPIC -shared -o $(C_LIB) $(C_OBJECTS)
else else
gcc -dynamiclib -undefined dynamic_lookup -o $(C_LIB) $(C_OBJECTS) gcc -dynamiclib -undefined dynamic_lookup -o $(C_LIB) $(C_OBJECTS)
endif endif
mkbin: $(BIN):
mkdir -p $(BIN) mkdir -p $(BIN)
$(BIN)/%.o: %.c $(BIN)/%.o: %.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment