diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-22 20:09:13 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-22 20:09:13 +0200 |
| commit | 65c411dcb3fd33122cbc314ca5b2a94542bc1e87 (patch) | |
| tree | c329b4eeaf67f08ddc8030e0cc9eefb4a57801ae /Makefile | |
| parent | c40f79737a4ce6ae0cd8bd6ea7f302217333e486 (diff) | |
| download | coreutils-65c411dcb3fd33122cbc314ca5b2a94542bc1e87.tar.gz coreutils-65c411dcb3fd33122cbc314ca5b2a94542bc1e87.tar.bz2 coreutils-65c411dcb3fd33122cbc314ca5b2a94542bc1e87.zip | |
Added shuf with trand
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -6,7 +6,8 @@ CCFLAGS = -Wall -Wextra -Wpedantic all: prebuild $(BINDIR)/basename $(BINDIR)/chown $(BINDIR)/cut $(BINDIR)/head \ $(BINDIR)/mkdir $(BINDIR)/mv $(BINDIR)/rm $(BINDIR)/seq \ - $(BINDIR)/shuf $(BINDIR)/tee $(BINDIR)/tr + $(BINDIR)/shuf $(BINDIR)/tee $(BINDIR)/tr \ + $(BINDIR)/shuf_trand prebuild: mkdir -vp $(BINDIR) @@ -44,6 +45,13 @@ $(BINDIR)/tee: $(SRCDIR)/tee.c $(BINDIR)/tr: $(SRCDIR)/tr.c $(CC) $(CCFLAGS) -o $@ $^ +#### shuf using trand +TRAND_PATH = trand + +$(BINDIR)/shuf_trand: $(SRCDIR)/shuf.c + make --no-print-directory -C $(TRAND_PATH) + $(CC) $(CCFLAGS) -o $@ $^ -DUSE_TRAND -I$(TRAND_PATH) -L$(TRAND_PATH) -ltrand -lpthread + clean: rm -vf $(BINDIR)/* |
