From 5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa Mon Sep 17 00:00:00 2001 From: dianshi Date: Fri, 11 Mar 2022 15:58:03 +0000 Subject: Fix linux compilation --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3