Files
ispc/examples/simple/Makefile
Matt Pharr bedaec2295 Update examples for multi-target compilation.
Makefile and vcxproj file updates.
Also modified vcxproj files so that the various files ispc generates go into $(TargetDir),
  not the current directory.
Modified the ray tracer example to not have uniform short-vector types in its app-visible
  datatypes (these are laid out differently on SSE vs AVX); there was an existing lurking
  bug in the way this was done before.
2011-10-04 16:01:56 -07:00

26 lines
503 B
Makefile

CXX=g++ -m64
CXXFLAGS=-Iobjs/ -O3 -Wall
ISPC=ispc
ISPCFLAGS=-O2 --arch=x86-64 --target=sse2
default: simple
.PHONY: dirs clean
.PRECIOUS: objs/simple.h
dirs:
/bin/mkdir -p objs/
clean:
/bin/rm -rf objs *~ simple
simple: dirs objs/simple.o objs/simple_ispc.o
$(CXX) $(CXXFLAGS) -o $@ objs/simple.o objs/simple_ispc.o
objs/simple.o: simple.cpp objs/simple_ispc.h
$(CXX) $(CXXFLAGS) -c -o $@ $<
objs/%_ispc.h objs/%_ispc.o: %.ispc
$(ISPC) $(ISPCFLAGS) $< -o objs/$*_ispc.o -h objs/$*_ispc.h