]> granicus.if.org Git - libx264/commitdiff
add "make NDEBUG=1" to strip library
authorLoren Merritt <pengvado@videolan.org>
Fri, 21 Jan 2005 08:22:47 +0000 (08:22 +0000)
committerLoren Merritt <pengvado@videolan.org>
Fri, 21 Jan 2005 08:22:47 +0000 (08:22 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@104 df754926-b1dd-0310-bc7b-ec298dee348c

build/cygwin/Makefile
vfw/build/cygwin/Makefile

index d3935c7bd14abcf6e87bb805aad06d648bdda7f4..e17a2f957cbac6a4f16bec3c0d7c5ae0d88a5ba0 100644 (file)
@@ -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
index e5f37468e20436ca8201df169e009dd28a52c62a..9f00a45efa050d761ef2f55f2e8100a9b1a25cb7 100644 (file)
@@ -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"