aboutsummaryrefslogtreecommitdiff
path: root/lib/sha1/Makefile
diff options
context:
space:
mode:
authorJ08nY2021-04-10 14:09:59 +0200
committerJ08nY2021-04-10 15:00:08 +0200
commit7e3be900daaae1586ac4a53192dfc7bcc18da34e (patch)
treea6c85251b4e41d640e6cd2c0abbcbb7ebefd79cf /lib/sha1/Makefile
parentd42684b09fe10f74efbdf190e75fec2d50de96b2 (diff)
downloadecgen-7e3be900daaae1586ac4a53192dfc7bcc18da34e.tar.gz
ecgen-7e3be900daaae1586ac4a53192dfc7bcc18da34e.tar.zst
ecgen-7e3be900daaae1586ac4a53192dfc7bcc18da34e.zip
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)