--- trunk/xvidcore/build/generic/Makefile.linuxppc 2002/03/21 23:59:48 52 +++ trunk/xvidcore/build/generic/Makefile.linuxppc 2002/03/30 19:09:17 93 @@ -4,8 +4,6 @@ # * # * Adapted from linux x86 Makefile by Guillaume Morin # * -# * Still incomplete but WIP -# * # * libso: # * (-lm not neccessary if using -ffast-math) # * @@ -22,6 +20,13 @@ CFLAGS += -Wall -O3 -funroll-loops -ffast-math CFLAGS += -fstrict-aliasing -fomit-frame-pointer +## for profiling, uncomment the next line. +#CFLAGS += -D_PROFILING_ + +## for debugging, comment the previous lines and uncomment the next one. +#CFLAGS += -Wall -g + + AS = as %.o: %.s @@ -31,7 +36,6 @@ all: $(LIB) $(LIBSO) - $(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o) ar rcs $@ $^ @@ -39,7 +43,6 @@ $(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o) $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ - clean: $(RM) `find $(SRCDIR) -name "*.o"`