From e7b24dd7da9de84e218f7d7be623f0cf8b9d1b9c Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 17 Feb 2003 14:12:16 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r415, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/dfx/; revision=416 --- polarizer/makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 polarizer/makefile (limited to 'polarizer/makefile') diff --git a/polarizer/makefile b/polarizer/makefile new file mode 100755 index 0000000..ba707dd --- /dev/null +++ b/polarizer/makefile @@ -0,0 +1,46 @@ +CXX=g++ +CFLAGS=-O6 -mcpu=pentiumpro -g -ggdb +FLAGS=-DPD + +FLEXTPATH=/usr/local/lib/pd/externs/flext +#DFXINC=../dfx-library + +INCLUDES=/usr/local/lib/pd/include $(FLEXTPATH) #$(DFXINC) +FLEXTLIB=$(FLEXTPATH)/flext.a + +LIBS=m + +PDEXTRA=/usr/local/lib/pd/extra + +TARGET=polarizer~.pd_linux + +SRCS=polarizer.cpp + +all: $(TARGET) + +%.o : %.cpp %.hpp + $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES)) $< -o $@ + +$(DFXINC)/%.o : $(DFXINC)/%.cpp + $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES)) $< -o $@ + +$(TARGET) : $(patsubst %.cpp,%.o,$(SRCS)) $(FLEXTLIB) + $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -o $@ + strip --strip-unneeded $@ + chmod 755 $@ + +install: $(TARGET) + chown root.root $^ + cp $^ $(PDEXTRA) + +.PHONY: clean +clean: + rm -f *.o $(TARGET) + + + + + + + + -- cgit v1.2.1