Commit 0f1daf9b authored by Taddeüs Kroes's avatar Taddeüs Kroes

- Fixed Makefile.

parent d3cbeb17
......@@ -118,14 +118,14 @@ generate_tetrahedron_triangles(triangle *triangles, unsigned char isovalue,
int
generate_cell_triangles(triangle *triangles, cell c, unsigned char isovalue)
{
const int points[24] = {0,1,3,7,0,2,6,7,0,1,5,7,0,2,3,7,0,4,5,7,0,4,6,7};
const int points[24] = {0,1,3,7,0,2,6,7,0,1,5,7,0,2,3,7,0,4,5,7,0,4,6,7};
int i, tri_count = 0;
for( i = 0; i < 21; i += 4 )
{
tri_count += generate_tetrahedron_triangles(triangles + tri_count,
isovalue, c, points[i], points[i+1], points[i+2], points[i+3]);
}
return tri_count;
return tri_count;
}
PROG = philosophers
CC = gcc
CFLAGS = -ansi -Wall -Wextra -O3 -pthread
OFILES = host.o
RM = rm -f
$(PROG): $(OFILES)
$(CC) -o $(PROG) $(OFILES) $(CFLAGS)
%.o: %.c
$(CC) -c $< $(CFLAGS)
clean:
$(RM) *.o $(PROG)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment