データマイニングツール
Revision | f6e4e2faa79b997473fec712de211057ea9036d4 (tree) |
---|---|
Time | 2017-12-17 20:18:37 |
Author | hatchi <hatchi@hatc...> |
Commiter | hatchi |
macOS でのgsed の利用に変更
@@ -3,6 +3,10 @@ DIR = ../.. | ||
3 | 3 | INCL = $(DIR)/include |
4 | 4 | OPT = -O3 -D_NO_MAIN_ -I$(INCL) |
5 | 5 | OPT64 = $(OPT) -DB_64 |
6 | +SED = sed | |
7 | +ifeq ($(shell uname), Darwin) | |
8 | +SED = gsed | |
9 | +endif | |
6 | 10 | |
7 | 11 | all: lcm-vsop.o |
8 | 12 |
@@ -11,11 +15,11 @@ all: lcm-vsop.o | ||
11 | 15 | clean: |
12 | 16 | rm -f *.o *.a *~ |
13 | 17 | |
14 | -lcm-vsop.o: lcm-vsop.cc | |
15 | - $(CC) $(OPT) -c lcm-vsop.cc | |
18 | +lcm-vsop.o: lcm-vsop.cc | |
19 | + $(CC) $(OPT) -c lcm-vsop.cc | |
16 | 20 | rm -f lcm-vsop_64.o |
17 | 21 | |
18 | -lcm-vsop_64.o: lcm-vsop.cc | |
22 | +lcm-vsop_64.o: lcm-vsop.cc | |
19 | 23 | $(CC) $(OPT64) -c lcm-vsop.cc -o lcm-vsop_64.o |
20 | 24 | rm -f lcm-vsop.o |
21 | 25 |
@@ -23,5 +27,4 @@ lcm-vsop.cc: lcm.c problem.c itemset.c trsact.c base.c \ | ||
23 | 27 | queue.c stdlib2.c aheap.c sgraph.c vec.c lcm-vsop.sed \ |
24 | 28 | aheap.h base.h itemset.h problem.h queue.h \ |
25 | 29 | sgraph.h stdlib2.h trsact.h vec.h |
26 | - sed -f lcm-vsop.sed < lcm.c > lcm-vsop.cc | |
27 | - | |
30 | + $(SED) -f lcm-vsop.sed < lcm.c > lcm-vsop.cc |