From 0292410a8da029c45625c9f8670c9bf16c828c12 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Fri, 21 Jan 2005 08:22:47 +0000 Subject: [PATCH] add "make NDEBUG=1" to strip library git-svn-id: svn://svn.videolan.org/x264/trunk@104 df754926-b1dd-0310-bc7b-ec298dee348c --- build/cygwin/Makefile | 7 ++++++- vfw/build/cygwin/Makefile | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) 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" -- 2.47.3