File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- VERSION := 8.1.1
1
+ VERSION := 8.1.2
2
2
MAJOR_VERSION := $(shell echo $(VERSION ) | head -c 1)
3
3
4
4
# installation directory (/usr/local by default)
@@ -18,7 +18,7 @@ ifeq ($(OS),Linux)
18
18
LIB_BASE := libcs50.so
19
19
LIB_MAJOR := libcs50.so.$(MAJOR_VERSION)
20
20
LIB_VERSION := libcs50.so.$(VERSION)
21
- LINKER_FLAGS := -Wl,-soname,$(LIB_VERSION )
21
+ LINKER_FLAGS := -Wl,-soname,$(LIB_MAJOR )
22
22
# Mac
23
23
else ifeq ($(OS),Darwin)
24
24
LIB_BASE := libcs50.dylib
@@ -34,12 +34,11 @@ all: $(LIBS) $(MANS)
34
34
35
35
$(LIBS ) : $(SRC ) $(INCLUDE ) Makefile
36
36
$(CC ) $(CFLAGS ) -fPIC -shared $(LINKER_FLAGS ) -o $(LIB_VERSION ) $(SRC )
37
- ln -s $(LIB_VERSION ) $(LIB_MAJOR )
38
- ln -s $(LIB_MAJOR ) $(LIB_BASE )
37
+ ln -sf $(LIB_MAJOR ) $(LIB_BASE )
39
38
mkdir -p $(addprefix build/, include lib src)
40
39
install -m 644 $(SRC ) build/src
41
40
install -m 644 $(INCLUDE ) build/include
42
- mv $(LIB_VERSION ) $(LIB_MAJOR ) $( LIB_BASE ) build/lib
41
+ mv $(LIB_VERSION ) $(LIB_BASE ) build/lib
43
42
44
43
.PHONY : install
45
44
install : all
You can’t perform that action at this time.
0 commit comments