1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Small update.

committer: mfx <mfx> 1139843847 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2006-02-13 15:17:27 +00:00
parent 23a6d326e8
commit b2d65febc8

View File

@ -16,6 +16,8 @@ endif
ifeq ($(CXX),)
CXX = g++
endif
ifeq ($(CXX),g++)
CXXFLAGS += -O2 -MMD
CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Werror
endif
@ -39,7 +41,9 @@ upx_OBJECTS := $(notdir $(upx_SOURCES:.cpp=$(objext)))
all: upx$(exeext)
upx$(exeext): $(upx_OBJECTS) $(upx_DEPENDENCIES)
$($(notdir $@).PRE_LINK_STEP)
$(strip $(CXXLD) $(call e,CPPFLAGS) $(call e,CXXFLAGS) $(call e,LDFLAGS) -o $@ $(upx_OBJECTS) $(call e,LDADD) $(call e,LIBS))
$($(notdir $@).POST_LINK_STEP)
%.o : %.cpp
$(strip $(CXX) $(call e,CPPFLAGS) $(call e,CXXFLAGS) -o $@ -c $<)