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


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