2019-04-21 04:09:39 +02:00
|
|
|
include ../Makefile.common
|
|
|
|
|
2019-02-26 13:30:57 +01:00
|
|
|
OBJS = math.o
|
|
|
|
|
|
|
|
LIBRARY = libm.a
|
2019-04-21 04:09:39 +02:00
|
|
|
DEFINES += -DUSERLAND
|
2019-02-26 13:30:57 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-04-25 19:28:10 +02:00
|
|
|
install: $(LIBRARY)
|
|
|
|
# Copy headers
|
2019-05-08 15:50:24 +02:00
|
|
|
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include
|
2019-04-25 19:28:10 +02:00
|
|
|
# Install the library
|
2019-05-08 15:50:24 +02:00
|
|
|
cp $(LIBRARY) ../Root/usr/lib
|