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 (392B)


      1 # File       : Makefile
      2 # Description: Compile targets
      3 # Copyright 2022 Harvard University. All Rights Reserved.
      4 CXX ?= g++
      5 ISPC = ispc
      6 CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++11
      7 ISPCFLAGS = --arch=x86-64 --target=sse4-i32x4
      8 .PHONY: clean
      9 
     10 main: main.cpp f.o
     11 	$(CXX) $(CXXFLAGS) -g -O1 -o $@ $^
     12 
     13 f.o: f.ispc
     14 	$(ISPC) -g -O0 $(extra) -DNDEBUG $(ISPCFLAGS) -o $@ $<
     15 
     16 clean:
     17 	rm -f main *.o