-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Wolff
committed
May 20, 2013
1 parent
f364ad0
commit 97bbacf
Showing
21 changed files
with
331 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
OBJDIR = obj | ||
TARGETDIR = . | ||
BASEDIR = .. | ||
TARGET = $(TARGETDIR)/chapter08 | ||
DEFINES += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_DEBUG | ||
INCLUDES += -I$(BASEDIR)/ingredients -I$(GLFW_INCLUDE) -I$(GLM_DIR) | ||
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) | ||
CFLAGS += $(CPPFLAGS) $(ARCH) -g | ||
CXXFLAGS += $(CFLAGS) | ||
LDFLAGS += -L$(BASEDIR)/ingredients -L$(GLFW_DIR)/lib | ||
LIBS += -pthread -lglfw -lrt -lingredients -lGL | ||
RESFLAGS += $(DEFINES) $(INCLUDES) | ||
LDDEPS += | ||
LINKCMD = $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS) $(ARCH) $(LIBS) | ||
|
||
OBJECTS := \ | ||
noisetex.o \ | ||
main.o \ | ||
scenesky.o \ | ||
scenedecay.o \ | ||
scenenightvision.o \ | ||
scenepaint.o \ | ||
scenewood.o | ||
|
||
OBJS := $(addprefix $(OBJDIR)/, $(OBJECTS)) | ||
|
||
.PHONY: clean all | ||
|
||
all: $(TARGET) | ||
@: | ||
|
||
$(TARGET): $(OBJS) $(LDDEPS) | $(TARGETDIR) | ||
@echo Linking chapter08 | ||
$(SILENT) $(LINKCMD) | ||
$(POSTBUILDCMDS) | ||
|
||
$(TARGETDIR): | ||
@echo Creating $(TARGETDIR) | ||
$(SILENT) mkdir -p $(TARGETDIR) | ||
|
||
$(OBJDIR): | ||
@echo Creating $(OBJDIR) | ||
$(SILENT) mkdir -p $(OBJDIR) | ||
|
||
clean: | ||
@echo Cleaning chapter08 | ||
$(SILENT) rm -f $(TARGET) | ||
$(SILENT) rm -rf $(OBJDIR) | ||
|
||
$(OBJS) : $(OBJDIR)/%.o : %.cpp | $(OBJDIR) | ||
@echo Compiling $(notdir $<) | ||
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
OBJDIR = obj | ||
TARGETDIR = . | ||
BASEDIR = .. | ||
TARGET = $(TARGETDIR)/chapter09 | ||
DEFINES += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_DEBUG | ||
INCLUDES += -I$(BASEDIR)/ingredients -I$(GLFW_INCLUDE) -I$(GLM_DIR) | ||
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) | ||
CFLAGS += $(CPPFLAGS) $(ARCH) -g | ||
CXXFLAGS += $(CFLAGS) | ||
LDFLAGS += -L$(BASEDIR)/ingredients -L$(GLFW_DIR)/lib | ||
LIBS += -pthread -lglfw -lrt -lingredients -lGL | ||
RESFLAGS += $(DEFINES) $(INCLUDES) | ||
LDDEPS += | ||
LINKCMD = $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS) $(ARCH) $(LIBS) | ||
|
||
OBJECTS := \ | ||
main.o \ | ||
scenefire.o \ | ||
sceneparticles.o \ | ||
sceneparticlesfeedback.o \ | ||
sceneparticlesinstanced.o \ | ||
scenesmoke.o \ | ||
scenewave.o | ||
|
||
OBJS := $(addprefix $(OBJDIR)/, $(OBJECTS)) | ||
|
||
.PHONY: clean all | ||
|
||
all: $(TARGET) | ||
@: | ||
|
||
$(TARGET): $(OBJS) $(LDDEPS) | $(TARGETDIR) | ||
@echo Linking chapter09 | ||
$(SILENT) $(LINKCMD) | ||
$(POSTBUILDCMDS) | ||
|
||
$(TARGETDIR): | ||
@echo Creating $(TARGETDIR) | ||
$(SILENT) mkdir -p $(TARGETDIR) | ||
|
||
$(OBJDIR): | ||
@echo Creating $(OBJDIR) | ||
$(SILENT) mkdir -p $(OBJDIR) | ||
|
||
clean: | ||
@echo Cleaning chapter09 | ||
$(SILENT) rm -f $(TARGET) | ||
$(SILENT) rm -rf $(OBJDIR) | ||
|
||
$(OBJS) : $(OBJDIR)/%.o : %.cpp | $(OBJDIR) | ||
@echo Compiling $(notdir $<) | ||
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<" |
Oops, something went wrong.