StupidOS/lib/lzp/Makefile

36 lines
523 B
Makefile
Raw Normal View History

2025-01-30 10:59:17 +00:00
LIBS = liblzp.a
2024-03-26 06:48:32 +00:00
OBJS = lzp.o
2025-01-30 10:59:17 +00:00
INCS = lzp.h
ASMINCS = lzp.inc
2024-03-26 06:48:32 +00:00
2025-01-30 10:59:17 +00:00
INST = $(addprefix $(DESTDIR)$(INCDIR)/, $(INCS)) \
$(addprefix $(DESTDIR)$(ASMDIR)/, $(ASMINCS)) \
$(addprefix $(DESTDIR)$(LIBDIR)/, $(LIBS))
.PHONY: all
all: $(LIBS)
$(LIBS): $(OBJS)
2024-03-26 06:48:32 +00:00
$(AR) rcs $@ $^
%.o: %.asm
$(AS) $< $@
2025-01-30 10:59:17 +00:00
$(DESTDIR)$(INCDIR)/%.h: %.h
install -D $< $@
$(DESTDIR)$(ASMDIR)/%.inc: %.inc
install -D $< $@
$(DESTDIR)$(LIBDIR)/%.a: %.a
install -D $< $@
.PHONY: clean
2024-03-26 06:48:32 +00:00
clean:
2025-01-30 10:59:17 +00:00
$(RM) $(LIBS) $(OBJS)
.PHONY: install
install: $(INST)