StupidOS/lib/lzp/Makefile

22 lines
369 B
Makefile
Raw Normal View History

2024-03-26 06:48:32 +00:00
TARGET = liblzp.a
OBJS = lzp.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(AR) rcs $@ $^
%.o: %.asm
$(AS) $< $@
clean:
$(RM) $(TARGET) $(OBJS)
install: $(TARGET)
@ mkdir -p $(DESTDIR)$(LIBDIR)
install $(TARGET) $(DESTDIR)$(LIBDIR)
@ mkdir -p $(DESTDIR)$(INCDIR)
install lzp.h $(DESTDIR)$(INCDIR)
@ mkdir -p $(DESTDIR)$(ASMDIR)
install lzp.inc $(DESTDIR)$(ASMDIR)