--- trunk/xvidcore/build/generic/Makefile.generic 2002/11/25 13:38:56 676 +++ trunk/xvidcore/build/generic/Makefile.generic 2002/11/26 23:44:11 677 @@ -10,9 +10,18 @@ include Makefile.inc +# Strict warning options for ANSI C compilation +WFLAGS = \ + -ansi -pedantic -Wcomment -fno-asm -fsigned-char \ + -W -Wparentheses \ + -Wreturn-type -Wswitch -Wunused \ + -Wsign-compare -Wimplicit -Wreturn-type \ + -Wshadow -Wpointer-arith -Wwrite-strings \ + -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -CC = gcc -Wall -CFLAGS = +CC = gcc +CFLAGS = $(WFLAGS) RM = rm -rf @@ -33,3 +42,8 @@ $(RM) $(DIRS) $(RM) $(LIB) $(RM) $(LIBSO) + +clean: + $(RM) `find $(SRCDIR) -name "*.o"` + $(RM) $(LIB) + $(RM) $(LIBSO:.so=.dll)