2019-04-21 05:09:39 +03:00
|
|
|
include ../Makefile.common
|
|
|
|
|
2019-04-10 17:14:44 +03:00
|
|
|
OBJS = \
|
2019-05-17 16:35:30 +03:00
|
|
|
CArgsParser.o \
|
2019-04-10 21:22:23 +03:00
|
|
|
CIODevice.o \
|
|
|
|
CFile.o \
|
|
|
|
CSocket.o \
|
|
|
|
CTCPSocket.o \
|
2019-04-10 17:56:55 +03:00
|
|
|
CElapsedTimer.o \
|
2019-04-10 18:35:43 +03:00
|
|
|
CNotifier.o \
|
2019-04-10 23:28:10 +03:00
|
|
|
CHttpRequest.o \
|
|
|
|
CHttpResponse.o \
|
|
|
|
CHttpJob.o \
|
|
|
|
CNetworkJob.o \
|
|
|
|
CNetworkResponse.o \
|
2019-04-10 18:01:54 +03:00
|
|
|
CObject.o \
|
2019-04-12 01:09:45 +03:00
|
|
|
CTimer.o \
|
2019-04-10 18:30:34 +03:00
|
|
|
CEventLoop.o \
|
2019-04-15 03:22:08 +03:00
|
|
|
CConfigFile.o \
|
2019-05-16 19:47:47 +03:00
|
|
|
CEvent.o \
|
2019-05-27 10:26:54 +03:00
|
|
|
CProcessStatisticsReader.o \
|
2019-05-26 02:58:22 +03:00
|
|
|
CDirIterator.o \
|
|
|
|
CUserInfo.o
|
2019-04-10 17:14:44 +03:00
|
|
|
|
|
|
|
LIBRARY = libcore.a
|
2019-04-21 05:09:39 +03:00
|
|
|
DEFINES += -DUSERLAND
|
2019-04-10 17:14:44 +03:00
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
$(LIBRARY): $(OBJS)
|
|
|
|
@echo "LIB $@"; $(AR) rcs $@ $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
-include $(OBJS:%.o=%.d)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
|
|
|
|
2019-05-17 21:40:38 +03:00
|
|
|
install: $(LIBRARY)
|
|
|
|
mkdir -p ../Root/usr/include/LibCore
|
|
|
|
mkdir -p ../Root/usr/include/AK
|
|
|
|
mkdir -p ../Root/usr/lib
|
|
|
|
# Copy headers
|
|
|
|
rsync -r -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include/LibCore
|
|
|
|
rsync -r -a --include '*/' --include '*.h' --exclude '*' ../AK/ ../Root/usr/include/AK
|
|
|
|
# Install the library
|
|
|
|
cp $(LIBRARY) ../Root/usr/lib
|