20 |
CFLAGS += -Wall -O3 -funroll-loops -ffast-math |
CFLAGS += -Wall -O3 -funroll-loops -ffast-math |
21 |
CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
22 |
|
|
23 |
|
## for debugging, comment the previous lines and uncomment the next one. |
24 |
|
#CFLAGS += -Wall -g -D_PROFILING_ |
25 |
|
|
26 |
|
## for profiling, comment the previous lines and uncomment the next one. |
27 |
|
#CFLAGS += -Wall -D_PROFILING_ -O2 |
28 |
|
|
29 |
AS = as |
AS = as |
30 |
|
|
31 |
%.o: %.s |
%.o: %.s |
36 |
all: $(LIB) $(LIBSO) |
all: $(LIB) $(LIBSO) |
37 |
|
|
38 |
$(LIB): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) |
$(LIB): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) |
|
@echo |
|
|
@echo WARNING: Because of memory alignment problems, Altivec does not work yet |
|
|
@echo - |
|
39 |
ar rcs $@ $^ |
ar rcs $@ $^ |
40 |
|
|
41 |
|
|
42 |
$(LIBSO): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) |
$(LIBSO): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) |
|
@echo |
|
|
@echo WARNING: Because of memory alignment problems, Altivec does not work yet |
|
|
@echo |
|
43 |
$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
44 |
|
|
45 |
clean: |
clean: |