Commit ae6480f2 authored by Martin Karsten's avatar Martin Karsten

- updated README.md

- add automatic submodule download for errnoname
parent a1a0ce07
Pipeline #40129 passed with stage
in 3 minutes and 29 seconds
......@@ -5,6 +5,9 @@ libfibre is an M:N user-level threading runtime without preemption, thus the ter
Running `make all` builds the fibre library in `src/libfibre.so` along with several example/test programs: `test1`, `ordering`, `threadtest`, `echotest`, and `webserver` in the subdirectory `apps`.
The build process should download all git submodules.
If that fails, download manually using `git submodule update --init --recursive`.
Running `make doc` builds documentation in `doc/html/index.html`.
Both Linux/epoll and FreeBSD/kqueue are supported, but significantly more testing has been done for Linux/epoll.
......
include ../Makefile.config
SOURCEDIRS=runtime libfibre errnoname
SOURCEDIRS=runtime libfibre
SOURCES=$(wildcard $(addsuffix /*.cc,$(SOURCEDIRS)))
OBJECTS=$(subst .cc,.o,$(notdir $(SOURCES)))
CSOURCES=$(wildcard $(addsuffix /*.c,$(SOURCEDIRS)))
CSOURCES=$(wildcard $(addsuffix /*.c,$(SOURCEDIRS))) errnoname/errnoname.c
COBJECTS=$(subst .c,.o,$(notdir $(CSOURCES)))
ASOURCES=$(wildcard $(addsuffix /*.S,$(SOURCEDIRS)))
AOBJECTS=$(subst .S,.o,$(notdir $(ASOURCES)))
......@@ -16,7 +16,7 @@ LIBSO=libfibre.so
CXXFLAGS+=-I. -D__LIBFIBRE__
vpath %.cc $(SOURCEDIRS)
vpath %.c $(SOURCEDIRS)
vpath %.c errnoname
vpath %.S $(SOURCEDIRS)
AFLAGS=-g --divide -I$(SRCDIR) --defsym __$(shell uname -m)__=1
......@@ -42,6 +42,11 @@ $(COBJECTS): %.o: %.c
$(AOBJECTS): %.o: %.S
$(AS) $(ASFLAGS) $< -o $@
$(OBJECTS): errnoname/errnoname.h
errnoname/errnoname.h errnoname/errnoname.c &:
git submodule update --init errnoname
clean:
rm -f $(LIBA) $(LIBSO) $(OBJECTS) $(COBJECTS) $(AOBJECTS) $(DEPENDS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment