[svn] / trunk / xvidcore / build / generic / Makefile.generic Repository:
ViewVC logotype

View of /trunk/xvidcore/build/generic/Makefile.generic

Parent Directory Parent Directory | Revision Log Revision Log


Revision 677 - (download) (annotate)
Tue Nov 26 23:44:11 2002 UTC (16 years, 6 months ago) by edgomez
File size: 947 byte(s)
ANSI C compliancy - thx Rick Foos
#/**************************************************************************
# *
# * generic makefile
# *
# * defines:   -DLINUX  -DBIG_ENDIAN
# *
# *
# *************************************************************************/


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 
CFLAGS = $(WFLAGS)


RM = rm -rf


all: $(LIB) $(LIBSO)


$(LIB): $(SRC:.c=.o)
	ar rcs $@ $^


$(LIBSO): $(SRC:.c=.o)
	$(CC) $^ -shared -lc -lm -o $@


remove-all:
	$(RM) $(DIRS)
	$(RM) $(LIB)
	$(RM) $(LIBSO)

clean:	
	$(RM) `find $(SRCDIR) -name "*.o"`
	$(RM) $(LIB)
	$(RM) $(LIBSO:.so=.dll)

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4