mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
removed -W -Wall -g and other gcc-specific warning/debug options
patch by Joey Parrish <joey@yunamusic.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7074 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4f5e15a23a
commit
ddc4bdf2cb
@ -1,7 +1,7 @@
|
||||
|
||||
KERNEL_INCLUDES = /usr/src/linux/include
|
||||
INCLUDES = -I$(KERNEL_INCLUDES)
|
||||
CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||
CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||
VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
|
||||
MDIR = /lib/modules/$(VERSION)/misc
|
||||
|
||||
@ -15,7 +15,7 @@ sis_vid.o: sis_vid.c sis_vid.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
||||
|
||||
mga_vid_test: mga_vid_test.c
|
||||
$(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c
|
||||
$(CC) -O $(INCLUDES) -o $@ $@.c
|
||||
|
||||
install: mga_vid.o
|
||||
if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
|
||||
|
@ -12,7 +12,7 @@ MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/
|
||||
|
||||
CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
|
||||
|
||||
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
|
||||
CFLAGS := $(CPPFLAGS) -O2 \
|
||||
-fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math\
|
||||
-D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
|
||||
|
@ -6,7 +6,7 @@ LIBNAME = libinput.a
|
||||
SRCS=input.c joystick.c lirc.c
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC) -Wall
|
||||
CFLAGS = $(OPTFLAGS) -I. -I.. $(EXTRA_INC)
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
|
@ -14,7 +14,7 @@ LIBNAME = libdha.so.$(VERSION)
|
||||
SRCS=libdha.c mtrr.c pci.c pci_names.c
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W
|
||||
CFLAGS = $(OPTFLAGS) -fPIC -I. -I..
|
||||
LIBS =
|
||||
ifeq ($(TARGET_OS),OpenBSD)
|
||||
ifeq ($(TARGET_ARCH_X86),yes)
|
||||
|
@ -1,6 +1,6 @@
|
||||
KERNEL_INCLUDES = /usr/src/linux/include
|
||||
INCLUDES = -I$(KERNEL_INCLUDES)
|
||||
CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||
CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||
VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
|
||||
MDIR = /lib/modules/$(VERSION)/misc
|
||||
|
||||
@ -10,7 +10,7 @@ dhahelper.o: dhahelper.c dhahelper.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
||||
|
||||
test: test.c
|
||||
$(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c
|
||||
$(CC) -O $(INCLUDES) -o $@ $@.c
|
||||
|
||||
install: dhahelper.o
|
||||
if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
|
||||
|
@ -28,7 +28,7 @@ OBJS=$(SRCS:.c=.o)
|
||||
SRCS2=$(ENCODER_SRCS)
|
||||
OBJS2=$(SRCS2:.c=.o)
|
||||
|
||||
CFLAGS = -Wall $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
||||
CFLAGS = $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
|
@ -12,7 +12,7 @@ SRCS += lrmi.c vbelib.c
|
||||
endif
|
||||
endif
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -I. -I.. -Wall
|
||||
CFLAGS = $(OPTFLAGS) -I. -I..
|
||||
# -I/usr/X11R6/include/
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
@ -16,7 +16,7 @@ resource.o registry.o elfdll.o afl.o vfl.o
|
||||
# -fno-omit-frame-pointer works around this gcc-3.0 bug. gcc-2.95.2 is OK.
|
||||
# Note: -D_FILE_OFFSET_BITS=32 is required to disable using mmap64(),
|
||||
# as it's broken in glibc 2.1.2 (bad header) and 2.1.3 (bad code)
|
||||
WARN_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration
|
||||
WARN_FLAGS =
|
||||
CFLAGS=-I. -I.. $(OPTFLAGS) -U_FILE_OFFSET_BITS $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer
|
||||
#CFLAGS=-I. -I.. -O $(WARN_FLAGS) -g #-fno-omit-frame-pointer
|
||||
|
||||
|
@ -23,7 +23,7 @@ $(LIBNAME): $(OBJS)
|
||||
$(AR) r $(LIBNAME) $(OBJS)
|
||||
|
||||
test: test.c $(LIBNAME)
|
||||
$(CC) test.c -Wall $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader $(ARCH_LIBS) -lstdc++
|
||||
$(CC) test.c $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader $(ARCH_LIBS) -lstdc++
|
||||
|
||||
all: $(LIBNAME)
|
||||
|
||||
|
@ -7,7 +7,7 @@ SRCS=postprocess.c swscale.c rgb2rgb.c yuv2rgb.c
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o
|
||||
|
||||
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. -Wall $(EXTRA_INC)
|
||||
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
|
||||
# -I/usr/X11R6/include/
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
@ -7,7 +7,7 @@ include ../config.mak
|
||||
SRCS = vidixlib.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
CFLAGS = $(OPTFLAGS) -W -Wall
|
||||
CFLAGS = $(OPTFLAGS)
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
|
@ -9,37 +9,37 @@ RADEON_VID=radeon_vid.so
|
||||
RADEON_SRCS=radeon_vid.c
|
||||
RADEON_OBJS=radeon_vid.o
|
||||
RADEON_LIBS=-L../../libdha -ldha -lm
|
||||
RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W
|
||||
RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
||||
|
||||
RAGE128_VID=rage128_vid.so
|
||||
RAGE128_SRCS=radeon_vid.c
|
||||
RAGE128_OBJS=rage128_vid.o
|
||||
RAGE128_LIBS=-L../../libdha -ldha
|
||||
RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128
|
||||
RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128
|
||||
|
||||
PM3_VID=pm3_vid.so
|
||||
PM3_SRCS=pm3_vid.c
|
||||
PM3_OBJS=pm3_vid.o
|
||||
PM3_LIBS=-L../../libdha -ldha
|
||||
PM3_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W
|
||||
PM3_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
||||
|
||||
MACH64_VID=mach64_vid.so
|
||||
MACH64_SRCS=mach64_vid.c
|
||||
MACH64_OBJS=mach64_vid.o
|
||||
MACH64_LIBS=-L../../libdha -ldha
|
||||
MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128
|
||||
MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128
|
||||
|
||||
MGA_VID=mga_vid.so
|
||||
MGA_SRCS=mga_vid.c
|
||||
MGA_OBJS=mga_vid.o
|
||||
MGA_LIBS=-L../../libdha -ldha -lm
|
||||
MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W
|
||||
MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I..
|
||||
|
||||
MGA_CRTC2_VID=mga_crtc2_vid.so
|
||||
MGA_CRTC2_SRCS=mga_vid.c
|
||||
MGA_CRTC2_OBJS=mga_crtc2_vid.o
|
||||
MGA_CRTC2_LIBS=-L../../libdha -ldha -lm
|
||||
MGA_CRTC2_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DCRTC2
|
||||
MGA_CRTC2_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DCRTC2
|
||||
|
||||
all: $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user