goat3d

diff Makefile @ 14:188c697b3b49

- added a document describing the goat3d file format chunk hierarchy - started an alternative XML-based file format - added the openctm library
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Sep 2013 04:47:05 +0300
parents e46529a5d057
children f1b4c27382ce
line diff
     1.1 --- a/Makefile	Tue Sep 10 15:29:45 2013 +0300
     1.2 +++ b/Makefile	Thu Sep 26 04:47:05 2013 +0300
     1.3 @@ -8,6 +8,11 @@
     1.4  obj = $(src:.cc=.o)
     1.5  dep = $(obj:.o=.d)
     1.6  
     1.7 +openctm = libs/openctm/libopenctm.a
     1.8 +
     1.9 +extinc = -Ilibs/openctm
    1.10 +extlibs = $(openctm)
    1.11 +
    1.12  name = goat3d
    1.13  so_major = 0
    1.14  so_minor = 1
    1.15 @@ -26,18 +31,21 @@
    1.16  	pic = -fPIC
    1.17  endif
    1.18  
    1.19 -CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(pic)
    1.20 -LDFLAGS = -lvmath -lanim
    1.21 +CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(pic) $(extinc)
    1.22 +LDFLAGS = $(extlibs) -lvmath -lanim
    1.23  
    1.24  .PHONY: all
    1.25  all: $(lib_so) $(lib_a)
    1.26  
    1.27 -$(lib_so): $(obj)
    1.28 +$(lib_so): $(obj) $(extlibs)
    1.29  	$(CXX) -o $@ $(shared) $(obj) $(LDFLAGS)
    1.30  
    1.31 -$(lib_a): $(obj)
    1.32 +$(lib_a): $(obj) $(extlibs)
    1.33  	$(AR) rcs $@ $(obj)
    1.34  
    1.35 +$(openctm):
    1.36 +	$(MAKE) -C libs/openctm
    1.37 +
    1.38  -include $(dep)
    1.39  
    1.40  %.d: %.cc