From: Loren Merritt Date: Fri, 21 Jan 2005 08:22:47 +0000 (+0000) Subject: add "make NDEBUG=1" to strip library X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0292410a8da029c45625c9f8670c9bf16c828c12;p=libx264 add "make NDEBUG=1" to strip library git-svn-id: svn://svn.videolan.org/x264/trunk@104 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/build/cygwin/Makefile b/build/cygwin/Makefile index d3935c7b..e17a2f95 100644 --- a/build/cygwin/Makefile +++ b/build/cygwin/Makefile @@ -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 diff --git a/vfw/build/cygwin/Makefile b/vfw/build/cygwin/Makefile index e5f37468..9f00a45e 100644 --- a/vfw/build/cygwin/Makefile +++ b/vfw/build/cygwin/Makefile @@ -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"