fix compiler flags

lib
Avril 4 years ago
parent d87a28a09b
commit ffce1f1131
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -73,7 +73,7 @@ lib$(PROJECT).so: CFLAGS+= -fPIC $(RELEASE_CFLAGS)
lib$(PROJECT).so: CXXFLAGS += -fPIC $(RELEASE_CXXFLAGS) lib$(PROJECT).so: CXXFLAGS += -fPIC $(RELEASE_CXXFLAGS)
lib$(PROJECT).so: LDFLAGS += $(RELEASE_LDFLAGS) lib$(PROJECT).so: LDFLAGS += $(RELEASE_LDFLAGS)
lib$(PROJECT).so: $(OBJ) lib$(PROJECT).so: $(OBJ)
$(CXX) -shared $^ $(RELEASE_CXXFLAGS) -o $@ $(RELEASE_LDFLAGS) $(CXX) -shared $^ $(CXXFLAGS) -o $@ $(LDFLAGS)
$(STRIP) $@ $(STRIP) $@
lib$(PROJECT)-debug.a: CFLAGS+= $(DEBUG_CFLAGS) lib$(PROJECT)-debug.a: CFLAGS+= $(DEBUG_CFLAGS)
@ -86,10 +86,10 @@ lib$(PROJECT)-debug.so: CFLAGS+= -fPIC $(DEBUG_CFLAGS)
lib$(PROJECT)-debug.so: CXXFLAGS += -fPIC $(DEBUG_CXXFLAGS) lib$(PROJECT)-debug.so: CXXFLAGS += -fPIC $(DEBUG_CXXFLAGS)
lib$(PROJECT)-debug.so: LDFLAGS += $(DEBUG_LDFLAGS) lib$(PROJECT)-debug.so: LDFLAGS += $(DEBUG_LDFLAGS)
lib$(PROJECT)-debug.so: $(OBJ) lib$(PROJECT)-debug.so: $(OBJ)
$(CXX) -shared $^ $(DEBUG_CXXFLAGS) -o $@ $(DEBUG_LDFLAGS) $(CXX) -shared $^ $(CXXFLAGS) -o $@ $(LDFLAGS)
$(PROJECT)-test-static: $(TEST_OBJ) $(PROJECT)-test-static: $(TEST_OBJ)
$(CXX) $^ $(RELEASE_CXXFLAGS) -o $@ -L. -l:lib$(PROJECT).a $(RELEASE_LDFLAGS) $(CXX) $^ $(CXXFLAGS) -o $@ -L. -l:lib$(PROJECT).a $(LDFLAGS)
$(PROJECT)-test: lib$(PROJECT).a $(PROJECT)-test: lib$(PROJECT).a
$(MAKE) $(PROJECT)-test-static $(MAKE) $(PROJECT)-test-static

Loading…
Cancel
Save