-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 699 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 699 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
31
32
33
34
#
# Makefile for word frequency count examples
#
PROGS = freq freq_mt freq_pmem freq_pmem_print freq_pmem_cpp
CFLAGS = -g -Wall -Werror -std=gnu99
CXXFLAGS = -g -Wall -Werror -std=gnu++11
all: $(PROGS)
freq_mt: LIBS = -pthread
freq_pmem freq_pmem_print freq_pmem_cpp: LIBS = -lpmem -lpmemobj -pthread
freq: freq.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
freq_mt: freq_mt.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
freq_pmem: freq_pmem.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
freq_pmem_print: freq_pmem_print.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
freq_pmem_cpp: freq_pmem_cpp.o
$(CXX) -o $@ $(CFLAGS) $^ $(LIBS)
clean:
$(RM) *.o a.out core
clobber: clean
$(RM) $(PROGS) freqcount
.PHONY: all clean clobber