Commit 0292410a authored by Loren Merritt's avatar Loren Merritt

add "make NDEBUG=1" to strip library


git-svn-id: svn://svn.videolan.org/x264/trunk@104 df754926-b1dd-0310-bc7b-ec298dee348c
parent 66ee02bd
......@@ -44,7 +44,12 @@ CFLAGS += -D__X264__ -D_CYGWIN
CFLAGS += $(PFLAGS)
# Optional Compiler options
CFLAGS += -g -Wall -DDEBUG
ifdef NDEBUG
CFLAGS += -s -DNDEBUG
else
CFLAGS += -g -DDEBUG
endif
CFLAGS += -Wall
CFLAGS += -O3
CFLAGS += -finline-functions
CFLAGS += -funroll-loops
......
......@@ -96,6 +96,9 @@ $(DLL): $(DIR_BUILD) $(OBJECTS)
-o $@ \
$(OBJECTS) driverproc.def \
-lgdi32 -lwinmm -lcomdlg32 -lcomctl32 $(LDFLAGS)
ifdef NDEBUG
@strip $(DIR_BUILD)/$(DLL)
endif
clean:
@echo " Cl: Object files and target lib"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment