Update of /cvsroot/pure-data/externals In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16202
Modified Files: Makefile Log Message: added tkwidgets build targets from template; made target to build shared library, but it's not used yet
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/externals/Makefile,v retrieving revision 1.163 retrieving revision 1.164 diff -C2 -d -r1.163 -r1.164 *** Makefile 1 Nov 2007 03:46:46 -0000 1.163 --- Makefile 14 Nov 2007 02:47:49 -0000 1.164 *************** *** 22,26 **** default: all
! .SUFFIXES: .$(EXTENSION)
--- 22,26 ---- default: all
! .SUFFIXES: .$(EXTENSION) .$(SHARED_LIB)
*************** *** 52,57 **** LDFLAGS += -bundle -bundle_loader $(pd_src)/bin/pd -L/sw/lib LIBS += -lc ! DYLIB_LDFLAGS = -dynamiclib -read_only_relocs warning -L/sw/lib ! DYLIB_EXTENSION = dylib STRIP = strip -x endif --- 52,56 ---- LDFLAGS += -bundle -bundle_loader $(pd_src)/bin/pd -L/sw/lib LIBS += -lc ! DYLIB_LDFLAGS = -dynamiclib -undefined dynamic_lookup -read_only_relocs warning -L/sw/lib STRIP = strip -x endif *************** *** 61,65 **** LIBS += -lc DYLIB_LDFLAGS = $(LDFLAGS) - DYLIB_EXTENSION = so STRIP = strip --strip-unneeded -R .note -R .comment endif --- 60,63 ---- *************** *** 79,83 **** -lwsock32 -lpthreadGC2 -lkernel32 -luser32 -lgdi32 -lregex DYLIB_LDFLAGS = -shared - DYLIB_EXTENSION = dll STRIP = strip --strip-unneeded -R .note -R .comment endif --- 77,80 ---- *************** *** 2132,2135 **** --- 2129,2170 ----
#------------------------------------------------------------------------------# + # TKWIDGETS + TKWIDGETS_NAME=tkwidgets + TKWIDGETS_OBJECTS := $(wildcard $(externals_src)/tkwidgets/*.c) + TKWIDGETS_SHARED := $(wildcard $(externals_src)/tkwidgets/shared/*.c) + tkwidgets_shared: $(TKWIDGETS_SHARED:.c=.o) + $(CC) $(DYLIB_LDFLAGS) \ + -o $(externals_src)/tkwidgets/libtkwidgets.$(DYLIB_EXTENSION) \ + $(TKWIDGETS_SHARED:.c=.o) + + tkwidgets: tkwidgets_shared $(TKWIDGETS_OBJECTS:.c=.$(EXTENSION)) + + tkwidgets_install: tkwidgets + install -d $(objectsdir)/$(TKWIDGETS_NAME) + $(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(TKWIDGETS_NAME) \ + --author "Hans-Christoph Steiner and other" \ + --description "a collection of objects based on Tk widgets" \ + --license "GPLv2 or later" + install -p $(TKWIDGETS_OBJECTS:.c=.$(EXTENSION)) $(objectsdir)/$(TKWIDGETS_NAME) + install -d $(helpdir)/$(TKWIDGETS_NAME) + install -p $(externals_src)/tkwidgets/*.pd \ + $(helpdir)/$(TKWIDGETS_NAME) + # install -d $(manualsdir)/$(TKWIDGETS_NAME) + # install -p $(externals_src)/tkwidgets/manual.txt \ + # $(manualsdir)/$(TKWIDGETS_NAME) + # install -d $(readmesdir) + # install -p $(externals_src)/tkwidgets/README \ + # $(readmesdir)/$(TKWIDGETS_NAME).txt + # install -d $(examplesdir)/$(TKWIDGETS_NAME) + # install -p $(externals_src)/tkwidgets/examples/*.pd \ + # $(examplesdir)/$(TKWIDGETS_NAME) + + tkwidgets_clean: + -rm -f -- $(TKWIDGETS_OBJECTS:.c=.$(EXTENSION)) + -rm -f -- $(TKWIDGETS_OBJECTS:.c=.o) + -rm -f -- $(externals_src)/tkwidgets/*.bak + -rm -f -- $(externals_src)/tkwidgets/*.*~ + + #------------------------------------------------------------------------------# # TOF TOF_NAME=tof