StupidOS/lib/c/Makefile

21 lines
333 B
Makefile
Raw Permalink Normal View History

2024-04-28 06:41:36 +00:00
TARGET = libc.a
OBJS = ctype.o
INCS = stddef.h time.h ctype.h
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 $(INCS) $(DESTDIR)$(INCDIR)