c++ - Makefile in osX -
the following code nuke plugin makefile. (mirrior.cpp -> mirrior.dylib)
i want add "header.h" , "header.cpp" in makefile.
where should change it????
# compiler info ('g++-4.0 --version') # i686-apple-darwin10-g++-4.0.1 (gcc) 4.0.1 (apple inc. build 5494) # copyright (c) 2005 free software foundation, inc. # free software; see source copying conditions. there no # warranty; not merchantability or fitness particular purpose. # end compiler info output ndkdir ?= /applications/nuke8.0v2/nuke8.0v2.app/contents/macos mycxx ?= g++-4.0 link ?= g++-4.0 cxxflags ?= -g -c -duse_glew -i$(ndkdir)/include -isysroot /developer/sdks/macosx10.6.sdk -arch x86_64 linkflags ?= -l$(ndkdir) -wl,-syslibroot,/developer/sdks/macosx10.6.sdk -arch x86_64 libs ?= -lddimage -lglew linkflags += -bundle frameworks ?= -framework quartzcore -framework iokit -framework corefoundation -framework carbon -framework applicationservices -framework opengl -framework agl all: mirror.dylib .precious : %.os %.os: %.cpp $(mycxx) $(cxxflags) -o $(@) $< %.dylib: %.os $(link) $(linkflags) $(libs) $(frameworks) -o $(@) $< clean: rm -rf *.os mirror.dylib
your question little ambiguous, think want:
mirrior.dylib: header.os %.dylib: %.os $(link) $(linkflags) $(libs) $(frameworks) -o $(@) $^
Comments
Post a Comment