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 d3935c7..e17a2f9 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 e5f3746..9f00a45 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"