StupidOS/lib/crypto/Makefile

39 lines
770 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 \
2024-07-20 06:59:37 +00:00
chacha/chacha.o \
hchacha/hchacha.o
2024-03-26 06:48:32 +00:00
INCS = sha2/sha2.h \
2024-07-20 06:59:37 +00:00
chacha/chacha.h \
hchacha/hchacha.h \
2024-04-02 10:03:47 +00:00
dilithium/dilithium.h \
falcon/falcon.h \
keccak/keccak.h
2024-03-26 06:48:32 +00:00
ASMS = sha2/sha2.inc \
2024-07-20 06:59:37 +00:00
chacha/chacha.inc \
hchacha/hchacha.inc
2024-03-26 06:48:32 +00:00
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)