Browse Source

Update dlls/Makefile

hlzbot-dirty
THE-Swank 8 years ago
parent
commit
99c6776f29
  1. 31
      dlls/Makefile

31
dlls/Makefile

@ -13,7 +13,7 @@ CFLAGS += \ @@ -13,7 +13,7 @@ CFLAGS += \
-Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf
CFLAGS_RELEASE := -Ofast -w
CFLAGS_DEBUG := -Wall -Wno-invalid-offsetof
CFLAGS_DEBUG := -Wall -Wno-invalid-offsetof -g -Og
CXX_ONLY_FLAGS :=
C_ONLY_FLAGS :=
@ -177,14 +177,39 @@ ifeq ($(COMPILE_ARCH), arm) @@ -177,14 +177,39 @@ ifeq ($(COMPILE_ARCH), arm)
endif
release: CFLAGS += $(CFLAGS_RELEASE)
release: build
release: build printresult
debug: CFLAGS += $(CFLAGS_DEBUG)
debug: build
debug: build printresult
build: createobjdir $(OBJECTS)
$(CXX) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -shared -o $(LIBNAME).so $(OBJECTS)
printresult:
@echo ""
@echo " #########################"
@echo " # Build info #"
@echo " #########################"
@echo " target: $(LIBNAME).so"
@echo " size: `stat -c%s $(LIBNAME).so`"
@echo ""
@echo " COMPILE_ARCH: $(COMPILE_ARCH)"
@echo " CC: $(CC)"
@echo " CXX: $(CXX)"
@echo " CFLAGS: $(CFLAGS)"
@echo " C_ONLY_FLAGS: $(C_ONLY_FLAGS)"
@echo " CXX_ONLY_FLAGS: $(CXX_ONLY_FLAGS)"
@echo " LDFLAGS: $(LDLIBS) $(LDFLAGS)"
@echo " OBJECTS: $(OBJECTS)"
@echo ""
@echo " #########################"
@if [ -s $(LIBNAME).so ]; then \
echo " # Build succesfuly! #"; \
else \
echo " # Build FAIL! #"; \
fi
@echo " #########################"
createobjdir:
-mkdir $(OBJ_DIR) $(PM_SHARED_OBJ_DIR)

Loading…
Cancel
Save