diff options
author | dianshi <dos21h@gmail.com> | 2022-03-11 15:58:03 +0000 |
---|---|---|
committer | dianshi <dos21h@gmail.com> | 2022-03-11 15:58:03 +0000 |
commit | 5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa (patch) | |
tree | e31a4629eb1ced145622571cc67d06ee23818f1f /Makefile | |
parent | c6d603981adec7c0099fb48fc3369517b458ee85 (diff) | |
download | librusb-5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa.tar.gz librusb-5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa.zip |
Fix linux compilation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |