-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (23 loc) · 796 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Parallel text processing tools Makefile
# Copyright 2011 John Kleint
# This is free software, licensed under the GNU General Public License v3,
# available in the accompanying file LICENSE.txt.
CC=gcc
CFLAGS=-Wall -Wextra -pedantic -std=c99 -O3
.PHONY: clean all test
all: bin/pcat bin/hsplit
bin:
mkdir bin
bin/pcat: bin src/pcat.c bin/ptp.o
$(CC) $(CFLAGS) src/pcat.c bin/ptp.o -o bin/pcat
bin/hsplit: bin src/hsplit.c bin/ptp.o bin/murmurhash3.o
$(CC) $(CFLAGS) src/hsplit.c bin/murmurhash3.o bin/ptp.o -o bin/hsplit
bin/ptp.o: bin src/ptp.[ch]
$(CC) $(CFLAGS) -c src/ptp.c -o bin/ptp.o
bin/murmurhash3.o: bin src/murmurhash3.[ch]
$(CC) $(CFLAGS) -c src/murmurhash3.c -o bin/murmurhash3.o
test: bin/pcat bin/hsplit
test/test-pcat.sh
test/test-hsplit.sh
clean:
rm -rf bin