summaryrefslogtreecommitdiff
path: root/Libraries/LibThread/Makefile
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-08-25 18:55:56 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-08-26 11:31:14 +0200
commite1a6f8a27d772ad27507394aeb4a7db55d93467c (patch)
treea67bedeb5841d7deb4f2a9c5364719151eddab3b /Libraries/LibThread/Makefile
parentd5f34872031a90bb449c4c1f9b5080f25a842238 (diff)
downloadserenity-e1a6f8a27d772ad27507394aeb4a7db55d93467c.zip
LibThread: Introduce a new threading library
This library is meant to provide C++-style wrappers over lower level APIs such as syscalls and pthread_* functions, as well as utilities for easily running pieces of logic on different threads.
Diffstat (limited to 'Libraries/LibThread/Makefile')
-rw-r--r--Libraries/LibThread/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Libraries/LibThread/Makefile b/Libraries/LibThread/Makefile
new file mode 100644
index 0000000000..bc548c208a
--- /dev/null
+++ b/Libraries/LibThread/Makefile
@@ -0,0 +1,21 @@
+include ../../Makefile.common
+
+OBJS = \
+ Thread.o \
+ BackgroundAction.o
+
+LIBRARY = libthread.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