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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 677 - (view) (download)

1 : Isibaar 3 #/**************************************************************************
2 :     # *
3 :     # * generic makefile
4 :     # *
5 :     # * defines: -DLINUX -DBIG_ENDIAN
6 :     # *
7 :     # *
8 :     # *************************************************************************/
9 :    
10 :    
11 :     include Makefile.inc
12 :    
13 : edgomez 677 # Strict warning options for ANSI C compilation
14 :     WFLAGS = \
15 :     -ansi -pedantic -Wcomment -fno-asm -fsigned-char \
16 :     -W -Wparentheses \
17 :     -Wreturn-type -Wswitch -Wunused \
18 :     -Wsign-compare -Wimplicit -Wreturn-type \
19 :     -Wshadow -Wpointer-arith -Wwrite-strings \
20 :     -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \
21 :     -Wmissing-declarations
22 : Isibaar 3
23 : edgomez 677 CC = gcc
24 :     CFLAGS = $(WFLAGS)
25 : Isibaar 3
26 :    
27 :     RM = rm -rf
28 :    
29 :    
30 :     all: $(LIB) $(LIBSO)
31 :    
32 :    
33 :     $(LIB): $(SRC:.c=.o)
34 :     ar rcs $@ $^
35 :    
36 :    
37 :     $(LIBSO): $(SRC:.c=.o)
38 :     $(CC) $^ -shared -lc -lm -o $@
39 :    
40 :    
41 :     remove-all:
42 :     $(RM) $(DIRS)
43 :     $(RM) $(LIB)
44 :     $(RM) $(LIBSO)
45 : edgomez 677
46 :     clean:
47 :     $(RM) `find $(SRCDIR) -name "*.o"`
48 :     $(RM) $(LIB)
49 :     $(RM) $(LIBSO:.so=.dll)

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