all: pd_linux include Makefile.defs VERSION = 0.3 # seems gcc 2.x produces faster code than 3.x (see gforth docs) # due to some inlining / jump optimization issues. # something to do with inlining 'NEXT' i've found this to be the case # but only a few percent # unless you decide to do fancy stuff inside dsp loops, # you should hardly notice forth being there.. .SUFFIXES: .pd_linux primitives.h: mole.c cat mole.c | ./primitives.pl > primitives.h pd_linux: primitives.h mole.pd_linux PD_CFLAGS = -DPD .c.pd_linux: $(CC) $(PD_CFLAGS) $(OPTI_CFLAGS) $(DEBUG_CFLAGS) -DVERSION=\"$(VERSION)\" -o $*.o -c $*.c $(CC) -export_dynamic -shared -o $*.pd_linux $*.o -lm strip --strip-unneeded $*.pd_linux rm $*.o clean: rm -f *.pd_linux primitives.h rm -f *~ install: install -m 644 mole.pd_* $(PREFIX)/lib/pd/extra install -m 644 share/*.mole $(PREFIX)/lib/pd/extra install -m 644 doc/*.pd $(PREFIX)/lib/pd/doc/5.reference/ dist: clean rm -rf ../mole-$(VERSION) mkdir ../mole-$(VERSION) cp -av * ../mole-$(VERSION) cd .. && tar vczf mole-$(VERSION).tar.gz mole mole-$(VERSION) rm -rf ../mole-$(VERSION)