summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-04 16:16:50 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-04 16:16:50 +0200
commit04b9dc2d30cfc9b383029f6a4b02e2725108b0ae (patch)
treee117a998173b767f9fd009d49c4f8573d8b85432 /Libraries/LibCore/Makefile
parent63814ffebf16291419745cd8ba29a4d2fd888563 (diff)
downloadserenity-04b9dc2d30cfc9b383029f6a4b02e2725108b0ae.zip
Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
Diffstat (limited to 'Libraries/LibCore/Makefile')
-rw-r--r--Libraries/LibCore/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Libraries/LibCore/Makefile b/Libraries/LibCore/Makefile
new file mode 100644
index 0000000000..1f88103724
--- /dev/null
+++ b/Libraries/LibCore/Makefile
@@ -0,0 +1,49 @@
+include ../../Makefile.common
+
+OBJS = \
+ CArgsParser.o \
+ CIODevice.o \
+ CFile.o \
+ CSocket.o \
+ CTCPSocket.o \
+ CElapsedTimer.o \
+ CNotifier.o \
+ CHttpRequest.o \
+ CHttpResponse.o \
+ CHttpJob.o \
+ CNetworkJob.o \
+ CNetworkResponse.o \
+ CObject.o \
+ CTimer.o \
+ CEventLoop.o \
+ CConfigFile.o \
+ CEvent.o \
+ CProcessStatisticsReader.o \
+ CDirIterator.o \
+ CUserInfo.o
+
+LIBRARY = libcore.a
+DEFINES += -DUSERLAND
+
+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
+
+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