summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9f1c442..fa7e3d7 100644
--- a/Makefile
+++ b/Makefile
@@ -26,14 +26,18 @@ OBJECTS=$(OBJECTS_:.c=.o)
# echo "Main"
# $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
-all: build-src
+linux: build-src
echo "end"
#echo $(SOURCES)
#echo $(OBJECTS)
$(CC) -shared -Wl,-soname,lib$(PROJECT).so -o lib$(PROJECT).so $(OBJECTS) $(LDFLAGS_LIB)
$(AR) rcv lib$(PROJECT).a $(OBJECTS)
+macos: build-src-macos
+ echo "Starting here"
+ $(CC) -v -dynamiclib -undefined suppress -flat_namespace -o lib$(PROJECT).dylib $(OBJECTS) $(LDFLAGS_LIB)
+ $(AR) rcv lib$(PROJECT).a $(OBJECTS)
clean:
rm -rfv $(BUILD_DIR)/src/*.o
- rm -rfv $(BUILD_DIR)/src/os/*.o \ No newline at end of file
+ rm -rfv $(BUILD_DIR)/src/os/*.o