StupidOS/lib/lzp/Makefile
d0p1 🏳️‍⚧️ 0365dd5da5
Some checks are pending
Build / test (push) Waiting to run
Docs / test (push) Waiting to run
build: define INCDIR,BINDIR,LIBDIR...
2024-03-26 07:48:32 +01:00

22 lines
369 B
Makefile

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)