objs := $(addsuffix .o, $(c_generated) $(addprefix $(B)/, $(c_source)))
deps := $(objs:.o=.d)
all := $(PACKAGE) $(PACKAGE).1.gz
-www := $(B)/index.html $(B)/$(PACKAGE).1.html
+www := $(B)/index.html $(B)/$(PACKAGE).1.html $(B)/$(PACKAGE)
all: $(all)
www: $(www)
CC_CMD = $(CC) -c -o $@ $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) \
-MMD -MF $(B)/$(*F).d -MT $@ $<
+LD_CMD = $(CC) -o $@ $(objs) $(LDFLAGS) -llopsub
.ONESHELL:
.SHELLFLAGS := -ec
./version-gen.sh $(PACKAGE) version.c > /dev/null
$(PACKAGE): $(objs)
$(call SAY, LD $@)
- $(CC) -o $@ $(objs) $(LDFLAGS) -llopsub
+ $(LD_CMD)
+$(B)/$(PACKAGE): $(objs)
+ $(call SAY, LD $@)
+ $(LD_CMD) -static
+ strip $@
$(B)/%.o: $(B)/%.c
$(call SAY, CC $<)
$(CC_CMD)
<h2> <a name="installation">Installation</a> </h2>
- <p> To install the dependencies, run <code>apt-get install gcc rsync
- liblopsub-dev m4</code>. </p>
+ <p> The easiest way to install PACKAGE() is to download and run
+ this pre-compiled <a href="PACKAGE()">static binary</a> for x86. It
+ should work fine on all Linux distributions but it won't work on arm
+ systems. </p>
+
+ <p> To install from source, you first need to install the dependencies:
+ <code>apt-get install gcc rsync liblopsub-dev m4</code>. </p>
<p> To download the source code, run <code>git clone
CLONE_URL()</code>, or grab a current tarball from the <a