From: Loren Merritt Date: Wed, 16 Mar 2005 21:52:59 +0000 (+0000) Subject: 173 broke .depend when debugging was enabled X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=04557605de60718c172ce6d1fc26b30d6fd2ee8b;p=x264.git 173 broke .depend when debugging was enabled git-svn-id: svn://svn.videolan.org/x264/trunk@176 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/Makefile b/Makefile index b2580891..a3305c0a 100644 --- a/Makefile +++ b/Makefile @@ -25,12 +25,12 @@ CFLAGS+=-s -DNDEBUG else CFLAGS+=-g -DDEBUG endif +SRCS= $(SRCS_COMMON) # MMX/SSE optims ifeq ($(ARCH),X86) CFLAGS+=-DHAVE_MMXEXT -DHAVE_SSE2 -SRCS= $(SRCS_COMMON) common/i386/mc-c.c common/i386/dct-c.c \ - common/i386/predict.c +SRCS+= common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c ASMSRC= common/i386/dct-a.asm common/i386/cpu-a.asm \ common/i386/pixel-a.asm common/i386/mc-a.asm OBJASM= $(ASMSRC:%.asm=%.o) @@ -43,7 +43,7 @@ CFLAGS+=-faltivec else CFLAGS+=-maltivec -mabi=altivec endif -SRCS= $(SRCS_COMMON) common/ppc/mc.c common/ppc/pixel.c +SRCS+= common/ppc/mc.c common/ppc/pixel.c endif # stdint.h: everyone but BeOS @@ -93,7 +93,7 @@ checkasm: testing/checkasm.c libx264.a .depend: $(SRCS) x264.c rm -f .depend # Hacky - because gcc 2.9x doesn't have -MT - $(foreach SRC, $(SRCS) x264.c, ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM ) 1>> .depend;) + $(foreach SRC, $(SRCS) x264.c, ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;) depend: .depend ifneq ($(wildcard .depend),)