Permalink
Browse files

Compiler options for Houdinin 15.

Also, support for cpp files, because why not?
  • Loading branch information...
captainhammy committed Jul 11, 2015
1 parent 2f7b1da commit 45fac7e04d4c4eada4267bc853dcfd0d7b069782
Showing with 7 additions and 1 deletion.
  1. +7 −1 Makefile.gnu
View
@@ -9,6 +9,8 @@ ifndef INSTDIR
INSTDIR = $(HOME)/houdini$(HOUDINI_MAJOR_RELEASE).$(HOUDINI_MINOR_RELEASE)
endif
CXXFLAGS := -std=c++11
OBJECTS = $(SOURCES:.C=.o)
OBJECTS := $(OBJECTS:.cpp=.o)
@@ -18,6 +20,10 @@ TAGINFO = $(shell (echo -n "Compiled on:" `date`"\n by:" `whoami`@`hostn
$(CC) $(CXXFLAGS) $(OBJFLAGS) -DMAKING_DSO $(TAGINFO) \
$< $(OBJOUTPUT) $@
%.o: %.cpp
$(CC) $(CXXFLAGS) $(OBJFLAGS) -DMAKING_DSO $(TAGINFO) \
$< $(OBJOUTPUT)$@
$(DSONAME): $(OBJECTS)
$(LINK) $(LDFLAGS) $(SHAREDFLAG) $(OBJECTS) $(DSOFLAGS) \
$(DSOOUTPUT) $@
@@ -53,7 +59,7 @@ install: default help icons tools
@cp $(DSONAME) $(INSTDIR)/dso
clean:
rm -f $(OBJECTS) $(APPNAME) $(DSONAME) $(MBSD_GC_OBJ)
rm -f $(OBJECTS) $(APPNAME) $(DSONAME)
clobber:
rm -f $(INSTDIR)/dso/$(DSONAME)

0 comments on commit 45fac7e

Please sign in to comment.