Skip to content

Commit 8237512

Browse files
committed
up
1 parent edc1df6 commit 8237512

File tree

4 files changed

+32
-68
lines changed

4 files changed

+32
-68
lines changed

bin/align/Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1+
.POSIX:
2+
.SUFFIXES:
3+
.SUFFIXES: .c
14
include ../../conf.mk
2-
35
M = main
4-
PREC = s
5-
CO_CFLAGS = `co.conf --cflags $(PREC)`
6-
CO_LDFLAGS = `co.conf --libs $(PREC)`
7-
ALG_LDFLAGS = `alg.conf --libs $(PREC)`
8-
9-
install: $M
10-
mkdir -p $(PREFIX)/bin
11-
cp main $(PREFIX)/bin/co.align
12-
13-
$M: $M.o; $(CC) $< $(LDFLAGS) $(CO_LDFLAGS) $(ALG_LDFLAGS) -o $@
14-
$M.o: $M.c; $(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@
15-
16-
test: $M; atest test/*
17-
18-
.PHONY: clean test install
19-
clean:; rm -f $M.o $M
6+
PREC = d
7+
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
8+
all: $M
9+
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
10+
clean:; rm -f $M

bin/cmoment/Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1+
.POSIX:
2+
.SUFFIXES:
3+
.SUFFIXES: .c
14
include ../../conf.mk
2-
35
M = main
4-
PREC = s
5-
CO_CFLAGS = `co.conf --cflags $(PREC)`
6-
CO_LDFLAGS = `co.conf --libs $(PREC)`
7-
ALG_LDFLAGS = `alg.conf --libs $(PREC)`
8-
9-
install: $M
10-
mkdir -p $(PREFIX)/bin
11-
cp main $(PREFIX)/bin/co.cmoment
12-
13-
$M: $M.o; $(CC) $< $(LDFLAGS) $(CO_LDFLAGS) $(ALG_LDFLAGS) -o $@
14-
$M.o: $M.c; $(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@
15-
16-
test:
17-
18-
.PHONY: clean test install
19-
clean:; rm -f $M.o $M
6+
PREC = d
7+
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
8+
all: $M
9+
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
10+
clean:; rm -f $M

bin/eigenvector1/Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1+
.POSIX:
2+
.SUFFIXES:
3+
.SUFFIXES: .c
14
include ../../conf.mk
2-
35
M = main
4-
PREC = s
5-
CO_CFLAGS = `co.conf --cflags $(PREC)`
6-
CO_LDFLAGS = `co.conf --libs $(PREC)`
7-
ALG_LDFLAGS = `alg.conf --libs $(PREC)`
8-
9-
install: $M
10-
mkdir -p $(PREFIX)/bin
11-
cp main $(PREFIX)/bin/co.eig1
12-
13-
$M: $M.o; $(CC) $< $(LDFLAGS) $(CO_LDFLAGS) $(ALG_LDFLAGS) -o $@
14-
$M.o: $M.c; $(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@
15-
16-
test: install; atest test/*
17-
18-
.PHONY: clean test install
19-
clean:; rm -f $M.o $M
6+
PREC = d
7+
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
8+
all: $M
9+
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
10+
clean:; rm -f $M

bin/orient/Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1+
.POSIX:
2+
.SUFFIXES:
3+
.SUFFIXES: .c
14
include ../../conf.mk
2-
35
M = main
4-
PREC = s
5-
CO_CFLAGS = `co.conf --cflags $(PREC)`
6-
CO_LDFLAGS = `co.conf --libs $(PREC)`
7-
ALG_LDFLAGS = `alg.conf --libs $(PREC)`
8-
9-
install: $M
10-
mkdir -p $(PREFIX)/bin
11-
cp main $(PREFIX)/bin/co.orient
12-
13-
$M: $M.o; $(CC) $< $(LDFLAGS) $(CO_LDFLAGS) $(ALG_LDFLAGS) -o $@
14-
$M.o: $M.c; $(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@
15-
16-
test: install; atest test/*
17-
18-
.PHONY: clean test install
19-
clean:; rm -f $M.o $M
6+
PREC = d
7+
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
8+
all: $M
9+
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
10+
clean:; rm -f $M

0 commit comments

Comments
 (0)