Index: Makefile |
diff --git a/Makefile b/Makefile |
index 12031591096192aace5bd35eebc78e94b47c6f03..f4d40603b3bfd93c8a7f95b19620b47dd6fcebd7 100644 |
--- a/Makefile |
+++ b/Makefile |
@@ -1,17 +1,9 @@ |
-ifndef CC |
-CC = gcc |
-endif |
- |
-CFLAGS = $(CCFLAGS) \ |
- -lm \ |
- -Werror \ |
- -O2 \ |
- -m32 |
+CC ?= gcc |
C_SRCS = src/filterkit.c src/resample.c src/resamplesubs.c |
HEADERS = include/libresample.h src/config.h src/filterkit.h src/resample_defs.h |
-all: clean dirs resample_lib |
+all: clean dirs libresample.a |
@echo "Done building." |
clean: |
@@ -25,7 +17,5 @@ C_OBJS = $(C_SRCS:%.c=objs/%.o) |
$(C_OBJS): objs/%.o: %.c $(HEADERS) |
$(CC) -c $(CFLAGS) -fPIC -Iobjs/ $< -o $@ |
-resample_lib: $(C_OBJS) |
- ar rcs libresample.a \ |
- $(C_OBJS) |
- |
+libresample.a: $(C_OBJS) |
+ $(AR) rcs $@ $^ |