diff --git a/cs677/hw7/src/Makefile b/cs677/hw7/src/Makefile index e95939a..157b902 100644 --- a/cs677/hw7/src/Makefile +++ b/cs677/hw7/src/Makefile @@ -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) diff --git a/cs677/hw7/src/floyd.cc b/cs677/hw7/src/floyd.cc new file mode 100644 index 0000000..79ed691 --- /dev/null +++ b/cs677/hw7/src/floyd.cc @@ -0,0 +1,13 @@ + +/* Josh Holtrop + * 2008-10-15 + * CS 677 + * Grand Valley State University + */ + +#include +#include + +int main(int argc, char * argv[]) +{ +}