aboutsummaryrefslogtreecommitdiff
path: root/lib/sha1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sha1/Makefile')
-rw-r--r--lib/sha1/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sha1/Makefile b/lib/sha1/Makefile
index 7c7a1ed..71fbe9e 100644
--- a/lib/sha1/Makefile
+++ b/lib/sha1/Makefile
@@ -1,6 +1,4 @@
CC ?= gcc
-CFLAGS ?= -Wall
-LDFLAGS =
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:.c=.o)
@@ -11,13 +9,13 @@ A = libsha1.a
all: $(TARGET)
$(TARGET): $(OBJECTS)
- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+ $(CC) $(strip $(CPPFLAGS) $(CFLAGS) -o) $@ $^ $(LDFLAGS) $(LIBS)
$(A): $(OBJECTS)
ar rcs $(A) $(OBJECTS)
%.o: %.c
- $(CC) $(CFLAGS) -c $<
+ $(CC) $(strip $(CPPFLAGS) $(CFLAGS) -c) $<
clean:
rm -f *.o *.a $(TARGET)