Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
slitvinov committed Mar 14, 2024
1 parent b24ebec commit a22e40e
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 50 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ PATH="$HOME/.local/bin:$PATH"

Library is installed under the path <tt>PREFIX</tt>. Run
<pre>
$ MAKEFLAGS=-j4 ./install.sh
$ make
</pre>

If you have
Expand Down Expand Up @@ -105,7 +105,7 @@ main(void)
{
real A, a[] = { 0, 0, 0 }, b[] = { 2, 0, 0 }, c[] = { 0, 1, 0 };
A = tri_area(a, b, c);
printf("Area is of triangle: " FMT "\n", A);
printf("Area of a triangle is : " FMT "\n", A);
}

</pre>
Expand Down Expand Up @@ -403,7 +403,7 @@ requires [pandoc](http://pandoc.org).

<H2>Hacking</H2>

After adding new files to <a href="https://github.com/cselab/corpuscles/blob/master/lib/">lib/</a> update depdendencies:
After adding new files to [lib](https://github.com/cselab/corpuscles/blob/master/lib/) update depdendencies:

<pre>
$ (cd lib && ./bootstrap)
Expand Down
2 changes: 1 addition & 1 deletion README.md.m4
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PATH="$HOME/.local/bin:$PATH"

Library is installed under the path <tt>PREFIX</tt>. Run
<pre>
$ MAKEFLAGS=-j4 ./install.sh
$ make
</pre>

If you have
Expand Down
1 change: 1 addition & 0 deletions bin/2obj/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install: $M
cp main $(PREFIX)/bin/co.2obj
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
1 change: 1 addition & 0 deletions bin/2stl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install: $M
cp main $(PREFIX)/bin/co.2stl
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
1 change: 1 addition & 0 deletions bin/2vtk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CO_FLAGS = `co.conf --libs --cflags $(PREC)`
all: $M
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
1 change: 1 addition & 0 deletions bin/2xdmf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install: $M
cp main $(PREFIX)/bin/co.2xdmf
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
4 changes: 1 addition & 3 deletions bin/app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ M = main
install: $M
mkdir -p $(PREFIX)/bin
cp main $(PREFIX)/bin/co.app

test: install; atest test/*

.PHONY: clean test install
clean:
test:
32 changes: 8 additions & 24 deletions bin/bead/Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
.POSIX:
.SUFFIXES:
.SUFFIXES: .c
include ../../conf.mk
M = \
main\

M = main
PREC = d
CO_CFLAGS = `co.conf --cflags $(PREC)`
CO_LDFLAGS = `co.conf --libs $(PREC)`

LINK = $(CC)

install:
.o:
$(LINK) $< $(LDFLAGS) $(CO_LDFLAGS) -o $@

.c.o:
$(CC) $(CFLAGS) $(CO_CFLAGS) $< -c -o $@

.c:
%: %.c
%: %.sh

lint:; make CFLAGS='-Wall -Wextra -g -O2'
test: $M; atest test/*
CO_FLAGS = `co.conf --libs --cflags $(PREC)`
all: $M
install: $M
mkdir -p $(PREFIX)/bin
cp main $(PREFIX)/bin/co.bead

.PHONY: clean test install run lint
clean:; rm -f $M $(M:=.o)
.c:; $(CC) $< $(CFLAGS) $(CO_FLAGS) -o $@
clean:; rm -f $M
test:
Binary file modified docs/img/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/area.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/rbc/sde/Da-0.358.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/tetra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <H2>
</pre>
Library is installed under the path <tt>PREFIX</tt>. Run
<pre>
$ MAKEFLAGS=-j4 ./install.sh
$ make
</pre>
If you have <a href=https://github.io/slitvinov/atest>atest</a> you can
run
Expand Down Expand Up @@ -147,7 +147,7 @@ <H3>
{
real A, a[] = { 0, 0, 0 }, b[] = { 2, 0, 0 }, c[] = { 0, 1, 0 };
A = tri_area(a, b, c);
printf("Area is of triangle: " FMT "\n", A);
printf("Area of a triangle is : " FMT "\n", A);
}

</pre>
Expand Down Expand Up @@ -507,8 +507,9 @@ <H2>
<H2>
Hacking
</H2>
<p>After adding new files to <a href="lib/">lib</a> update
depdendencies:</p>
<p>After adding new files to <a
href="https://github.com/cselab/corpuscles/blob/master/lib/">lib</a>
update depdendencies:</p>
<pre>
$ (cd lib && ./bootstrap)
</pre>
Expand Down
Binary file modified img/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/area.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/rbc/sde/Da-0.358.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/tetra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions install.sh

This file was deleted.

0 comments on commit a22e40e

Please sign in to comment.