cs205-lecture-examples

Example codes used during Harvard CS205 lectures
git clone https://git.0xfab.ch/cs205-lecture-examples.git
Log | Files | Refs | README | LICENSE

Makefile (181B)


      1 CXX = gcc
      2 CXXFLAGS = -O1 -fopenmp
      3 .PHONY: clean
      4 
      5 main: main.c myfunc.o
      6 	$(CXX) $(CXXFLAGS) -o $@ $^
      7 
      8 myfunc.o: myfunc.c
      9 	$(CXX) $(CXXFLAGS) -c -o $@ $<
     10 
     11 clean:
     12 	rm -f main myfunc.o