blob: ae73a473c8c737f4d47362b59d195d01c60216c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
|