Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
# SPDX-License-Identifier: GPL-2.0
include ../config.mk

DISTGEN = maketable normal pareto paretonormal
DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist

HOSTCC ?= $(CC)
LDLIBS += -lm

all: $(DISTGEN) $(DISTDATA)

$(DISTGEN):
	$(HOSTCC) $(CFLAGS_FOR_BUILD) -I../include -o $@ $@.c -lm

%.dist: %
	./$* > $@

experimental.dist: maketable experimental.dat
	./maketable experimental.dat > experimental.dist

stats: stats.c
	$(HOSTCC) $(CFLAGS_FOR_BUILD) -I../include -o $@ $@.c -lm

install: all
	mkdir -p $(DESTDIR)$(LIBDIR)/tc
	for i in $(DISTDATA); \
	do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
	done

clean:
	rm -f $(DISTDATA) $(DISTGEN)