Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: Makefile

Issue 708001: Cleaning up libresample.a make rule (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 $@ $^
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698