StupidOS/lib/crypto/Makefile

36 lines
711 B
Makefile
Raw Normal View History

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 \
2024-04-02 10:03:47 +00:00
chacha20/chacha20.h \
dilithium/dilithium.h \
falcon/falcon.h \
keccak/keccak.h
2024-03-26 06:48:32 +00:00
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) $< $@
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)