2024-03-24 08:44:14 +00:00
|
|
|
TARGET = libcrypto.a
|
2024-03-26 06:48:32 +00:00
|
|
|
OBJS = sha2/sha256.o sha2/sha512.o \
|
|
|
|
chacha20/chacha20.o
|
|
|
|
INCS = sha2/sha2.h \
|
|
|
|
chacha20/chacha20.h
|
|
|
|
ASMS = sha2/sha2.inc \
|
|
|
|
chacha20/chacha20.inc
|
|
|
|
|
|
|
|
INCCRYPOTDIR = $(INCDIR)/crypto
|
|
|
|
ASMCRYPTODIR = $(ASMDIR)/crypto
|
2024-03-24 08:44:14 +00:00
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(AR) rcs $@ $^
|
|
|
|
|
|
|
|
%.o: %.asm
|
|
|
|
$(AS) $< $@
|
2023-06-29 04:09:31 +00:00
|
|
|
|
2024-02-04 19:18:52 +00:00
|
|
|
clean:
|
2024-03-24 08:44:14 +00:00
|
|
|
$(RM) $(TARGET) $(OBJS)
|
2024-02-04 19:18:52 +00:00
|
|
|
|
2024-03-24 08:44:14 +00:00
|
|
|
install: $(TARGET)
|
2024-03-26 06:48:32 +00:00
|
|
|
@ mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
|
install $(TARGET) $(DESTDIR)$(LIBDIR)
|
|
|
|
@ mkdir -p $(DESTDIR)$(INCCRYPOTDIR)
|
|
|
|
install $(INCS) $(DESTDIR)$(INCCRYPOTDIR)
|
|
|
|
install crypto.h $(DESTDIR)$(INCDIR)
|
|
|
|
@ mkdir -p $(DESTDIR)$(ASMCRYPTODIR)
|
|
|
|
install $(ASMS) $(DESTDIR)$(ASMCRYPTODIR)
|
|
|
|
|
|
|
|
|