added floyd.cc, updated Makefile
git-svn-id: svn://anubis/gvsu@191 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
ab08e76764
commit
5fd6c4a7bb
2 files changed
+25
-2
No files matched your search
+12
-2
@@ -2,10 +2,20 @@
|
||||
TARGETS := gen_adj_matrix
|
||||
TARGETS += floyd
|
||||
|
||||
CXXFLAGS := -fopenmp
|
||||
|
||||
OBJS := $(foreach target,$(TARGETS),$(target).o)
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
%: %.o
|
||||
$(CC) -o $@ $<
|
||||
$(TARGETS): $(OBJS)
|
||||
$(CXX) -o $@ $@.o
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -o $@ -c $(CFLAGS) $<
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) -o $@ -c $(CXXFLAGS) $<
|
||||
|
||||
clean:
|
||||
-rm -f *~ *.o $(TARGETS)
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
/* Josh Holtrop
|
||||
* 2008-10-15
|
||||
* CS 677
|
||||
* Grand Valley State University
|
||||
*/
|
||||
|
||||
#include <omp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
}
|
||||
Reference in new issue
Block a user