mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:37:45 +00:00
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/.
This commit is contained in:
parent
63814ffebf
commit
04b9dc2d30
328 changed files with 36 additions and 36 deletions
49
Libraries/LibCore/Makefile
Normal file
49
Libraries/LibCore/Makefile
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue