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