mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 10:11:53 +00:00
01bfa5ebf3
This is the first part of rewriting Flock to C to significantly reduce memory footprint of individual machines from 20+M in Python to (goal) less than 1M. Now the process eats ~460k and I suspect that this won't even be the consumption per machine in total as fork() is involved and some parts of the memory will be heavily shared.
13 lines
296 B
Makefile
13 lines
296 B
Makefile
src := flock.c hypervisor.c
|
|
obj := $(src-o-files)
|
|
|
|
flock=$(exedir)/flock-sim
|
|
|
|
$(flock): $(obj)
|
|
$(flock): $(common-lib)
|
|
$(flock): LIBS += $(COMMON_LIBS)
|
|
|
|
$(flock):
|
|
$(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(patsubst $(common-lib),$(shell cat $(common-lib)),$^) $(LIBS)
|