以下代码是NUKE插件makefile。 (Mirrior.cpp - > Mirrior.dylib)
我只想添加" header.h"和#34; header.cpp"在我的makefile中。
我应该在哪里更改????
# 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.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A 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
答案 0 :(得分:0)
你的问题有点含糊不清,但我认为这会做你想做的事情:
Mirrior.dylib: header.os
%.dylib: %.os
$(LINK) $(LINKFLAGS) $(LIBS) $(FRAMEWORKS) -o $(@) $^