|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
PROJECT=cow
|
|
|
|
PROJECT=cow
|
|
|
|
AUTHOR=Avril (Flanchan) <flanchan@cumallover.me>
|
|
|
|
AUTHOR=Avril (Flanchan) <flanchan@cumallover.me>
|
|
|
|
VERSION=0.1.2
|
|
|
|
VERSION=0.1.3
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(PREFIX),)
|
|
|
|
ifeq ($(PREFIX),)
|
|
|
|
PREFIX := /usr/local
|
|
|
|
PREFIX := /usr/local
|
|
|
@ -107,16 +107,16 @@ lib$(PROJECT)-debug.a: $(OBJ)
|
|
|
|
|
|
|
|
|
|
|
|
lib$(PROJECT)-release.so: CFLAGS+= $(RELEASE_CFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-release.so: CFLAGS+= $(RELEASE_CFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-release.so: CXXFLAGS += $(RELEASE_CXXFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-release.so: CXXFLAGS += $(RELEASE_CXXFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-release.so: LDFLAGS += $(RELEASE_LDFLAGS)
|
|
|
|
lib$(PROJECT)-release.so: LDFLAGS += $(RELEASE_LDFLAGS) -Wl,-soname,lib$(PROJECT)-release.so
|
|
|
|
lib$(PROJECT)-release.so: $(OBJ)
|
|
|
|
lib$(PROJECT)-release.so: $(OBJ)
|
|
|
|
$(CXX) -shared $^ -o $@
|
|
|
|
$(CXX) -shared $^ $(CXXFLAGS) -o $@ $(LDFLAGS)
|
|
|
|
$(STRIP) $@
|
|
|
|
$(STRIP) $@
|
|
|
|
|
|
|
|
|
|
|
|
lib$(PROJECT)-debug.so: CFLAGS+= $(DEBUG_CFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-debug.so: CFLAGS+= $(DEBUG_CFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-debug.so: CXXFLAGS += $(DEBUG_CXXFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-debug.so: CXXFLAGS += $(DEBUG_CXXFLAGS) -fPIC
|
|
|
|
lib$(PROJECT)-debug.so: LDFLAGS += $(DEBUG_LDFLAGS)
|
|
|
|
lib$(PROJECT)-debug.so: LDFLAGS += $(DEBUG_LDFLAGS) -Wl,-soname,lib$(PROJECT)-debug.so
|
|
|
|
lib$(PROJECT)-debug.so: $(OBJ)
|
|
|
|
lib$(PROJECT)-debug.so: $(OBJ)
|
|
|
|
$(CXX) -shared $^ -o $@
|
|
|
|
$(CXX) -shared $^ $(CXXFLAGS) -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
lib$(PROJECT).a: lib$(PROJECT)-release.a
|
|
|
|
lib$(PROJECT).a: lib$(PROJECT)-release.a
|
|
|
|
ln -f $< $@
|
|
|
|
ln -f $< $@
|
|
|
|