add unmodified version of TinyRenderer, a 500 line software renderer with vertex and pixel shaders, texture mapping and Wavefront .obj support.
This commit is contained in:
23
examples/TinyRenderer/Makefile
Normal file
23
examples/TinyRenderer/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
SYSCONF_LINK = g++
|
||||
CPPFLAGS = -Wall -Wextra -Weffc++ -pedantic -std=c++98
|
||||
LDFLAGS = -O3
|
||||
LIBS = -lm
|
||||
|
||||
DESTDIR = ./
|
||||
TARGET = main
|
||||
|
||||
OBJECTS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
|
||||
|
||||
all: $(DESTDIR)$(TARGET)
|
||||
|
||||
$(DESTDIR)$(TARGET): $(OBJECTS)
|
||||
$(SYSCONF_LINK) -Wall $(LDFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(LIBS)
|
||||
|
||||
$(OBJECTS): %.o: %.cpp
|
||||
$(SYSCONF_LINK) -Wall $(CPPFLAGS) -c $(CFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
-rm -f $(OBJECTS)
|
||||
-rm -f $(TARGET)
|
||||
-rm -f *.tga
|
||||
|
||||
Reference in New Issue
Block a user