2 all: moebius-core.scad moebius-mesh.scad
4 PLAY = /home/reprap/play
9 CWARNINGS = -Wall -Wwrite-strings -Wshadow -Wextra -Wno-unused-parameter
10 CFLAGS = $(COPTIMISE) $(CWARNINGS) $(CDEBUG)
12 $(shell set -xe; $(PLAY)/commitid.scad.pl >commitid.scad.tmp; cmp commitid.scad.tmp commitid.scad || mv -f commitid.scad.tmp commitid.scad )
14 PYLIBS = $(shell echo *.py)
16 moebius-core.scad: genscad $(PYLIBS)
17 ./$< >$@.tmp && mv -f $@.tmp $@
19 moebius-mesh.scad: meshscad $(PYLIBS)
20 ./$< >$@.tmp && mv -f $@.tmp $@
22 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
24 symbolic.c: gensymbolic symbolic.py
25 ./gensymbolic -q >$@.tmp && mv -f $@.tmp $@
27 findcurve.o: findcurve.c symbolic.c
29 GSL_LIBS := $(shell pkg-config --libs gsl)
31 findcurve: findcurve.o $(GSL_LIBS)
33 autoincs: $(AUTO_INCS)
34 scads: $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
35 stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
38 $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
40 $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))
42 .PRECIOUS: %.auto.scad
43 %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
48 .PRECIOUS: %.stl %.gcode %.eps %.dxf