-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 711 Bytes
/
Makefile
File metadata and controls
30 lines (20 loc) · 711 Bytes
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
TARGETS = goodsets goodsets128 goodsets128h
CFLAGS=-O3 -fomit-frame-pointer -funroll-all-loops -pthread -lrt -march=corei7
#CFLAGS=-g
CC ?= gcc
#CC = /opt/open64/bin/opencc
all: $(TARGETS)
goodsets: goodsets.c setops.o
$(CC) $(CFLAGS) -o $@ $< setops.o -lpthread
#$(TARGETS): %: %.c setops.o
# $(CC) $(CFLAGS) -o $@ $< setops.o -lpthread
goodsets128: goodsets128.c setops128.o
$(CC) -DH128 $(CFLAGS) -o $@ goodsets128.c setops128.o -lpthread
goodsets128h: goodsets128.c setops.o
$(CC) $(CFLAGS) -o $@ goodsets128.c setops.o -lpthread
setops128.o: setops128.c setops128.h
$(CC) $(CFLAGS) -c $<
setops.o: setops.c setops.h
$(CC) $(CFLAGS) -c $<
clean:
rm -f $(TARGETS) *.o