Update of /cvsroot/pure-data/externals/grill/guitest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12494
Added Files: build-pd-linux.sh config-pd-linux.txt make-files.txt makefile.pd-linux Removed Files: guitest.dsp Log Message: ""
--- NEW FILE: build-pd-linux.sh --- #!/bin/sh
. config-pd-linux.txt
make -f makefile.pd-linux && { if [ $INSTPATH != "" ]; then echo Now install as root su -c "make -f makefile.pd-linux install" fi }
--- NEW FILE: config-pd-linux.txt --- # Copyright (c) 2002-2004 Thomas Grill (xovo@gmx.net) #
# your c++ compiler (define only if it's different than g++) # CXX=g++
# where are the PD header files? # leave it blank if it is a system directory (like /usr/local/include), # since gcc >= 3.2 complains about it PDPATH=/usr/src/pd-0.37-0/src
# where do the flext libraries reside? FLEXTPATH=/usr/local/lib/pd/flext
# where should flext libraries be built? TARGDIR=./pd-linux
# where should the external be installed? # (leave blank to omit installation) INSTPATH=/usr/local/lib/pd/extra
# user defined compiler flags UFLAGS=
# define for shared build # FLEXT_SHARED=1
--- NEW FILE: make-files.txt --- # all the source files from the package NAME=guitest
SRCDIR=.
SRCS= flgui.cpp flguiobj.cpp main.cpp HDRS= flgui.h flguiobj.h
--- NEW FILE: makefile.pd-linux --- # Copyright (C) 2002-2004 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ linux # # usage: # to build run "make -f makefile.pd-linux" # to install (as root), do "make -f makefile.pd-linux install" #
CONFIG=config-pd-linux.txt
include $(CONFIG)
# compiler+linker stuff INCLUDES=$(PDPATH) FLAGS=-DFLEXT_SYS=2 CFLAGS=-O2 $(UFLAGS) LDFLAGS=$(UFLAGS) # needed by icc LIBS=
ifdef FLEXT_SHARED CFLAGS+=-shared -DFLEXT_SHARED LDFLAGS+=-L $(FLEXTPATH)
ifeq ($(CXX),icc) LDFLAGS+=-i_dynamic else LDFLAGS+=-Wl,-Bdynamic endif
FLEXTLIB=-lflext
else
FLEXTLIB=$(FLEXTPATH)/libflext.a
endif
# --------------------------------------------- # the rest can stay untouched # ----------------------------------------------
include make-files.txt
TARGET=$(TARGDIR)/$(NAME).pd_linux
# default target all: $(TARGDIR) $(TARGET)
$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(CONFIG) touch $@
$(TARGDIR): mkdir $(TARGDIR)
$(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(CXX) -shared $(LDFLAGS) -o $@ $^ $(FLEXTLIB) $(patsubst %,-l%,$(LIBS)) strip --strip-unneeded $@ chmod 755 $@
$(INSTPATH): mkdir $(INSTPATH)
install:: $(INSTPATH)
install:: $(TARGET) cp $^ $(INSTPATH) chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^))
.PHONY: clean clean: rm -f $(TARGDIR)/*.o $(TARGET)
--- guitest.dsp DELETED ---