summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordianshi <dos21h@gmail.com>2022-03-11 15:58:03 +0000
committerdianshi <dos21h@gmail.com>2022-03-11 15:58:03 +0000
commit5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa (patch)
treee31a4629eb1ced145622571cc67d06ee23818f1f /Makefile
parentc6d603981adec7c0099fb48fc3369517b458ee85 (diff)
downloadlibrusb-5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa.tar.gz
librusb-5ee81fbbaf5c6a3bbc583d37ce324cf8546dc9aa.zip
Fix linux compilation
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