ladybird/LibM/Makefile
2019-05-23 13:06:59 +02:00

25 lines
462 B
Makefile

include ../Makefile.common
OBJS = math.o
LIBRARY = libm.a
DEFINES += -DUSERLAND
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
@echo "LIB $@"; $(AR) rcs $@ $(OBJS)
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
-include $(OBJS:%.o=%.d)
clean:
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
install: $(LIBRARY)
# Copy headers
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include
# Install the library
cp $(LIBRARY) ../Root/usr/lib