added floyd.cc, updated Makefile

git-svn-id: svn://anubis/gvsu@191 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-10-12 23:18:26 +00:00
parent ab08e76764
commit 5fd6c4a7bb
2 changed files with 25 additions and 2 deletions

View File

@ -2,10 +2,20 @@
TARGETS := gen_adj_matrix TARGETS := gen_adj_matrix
TARGETS += floyd TARGETS += floyd
CXXFLAGS := -fopenmp
OBJS := $(foreach target,$(TARGETS),$(target).o)
all: $(TARGETS) all: $(TARGETS)
%: %.o $(TARGETS): $(OBJS)
$(CC) -o $@ $< $(CXX) -o $@ $@.o
%.o: %.c
$(CC) -o $@ -c $(CFLAGS) $<
%.o: %.cc
$(CXX) -o $@ -c $(CXXFLAGS) $<
clean: clean:
-rm -f *~ *.o $(TARGETS) -rm -f *~ *.o $(TARGETS)

13
cs677/hw7/src/floyd.cc Normal file
View File

@ -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[])
{
}