#Makefile mods by Soeren Bovbjerg. #Adopted by Olaf Matthes for use with GCC 3.3 # #This makefile is made for r10000. You can change r10000 to your #processor type if you have problems. Just change and type #'make pd' # #You will need to change the tck/tk paths if you want to recompile #The GUI part. #compile with GCC as n32 binary EXECUTABLE=../bin/pd-n32 XF1=-mabi=n32 -DN32 -O3 -funroll-loops -fomit-frame-pointer XF2=-Wall -W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch -mips4 #compile with GCC as o32 binary #EXECUTABLE=../bin/pd-o32 #XF1=-mcpu=r4000 -O3 -funroll-loops -fomit-frame-pointer #XF2=-Wall -W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch -mips3 #EXECUTABLE=../bin/pd-n32 #XF1=-n32 -DN32 -woff 1080,1064,1185,1552,1174,1171 -Ofast=ip32 #XF2=-OPT:cray_ivdep=true -r10000 -OPT:roundoff=3 -OPT:IEEE_arithmetic=3 #uncomment this to make o32 version and comment the 3 lines above #EXECUTABLE=../bin/pd-o32 #XF1=-o32 -fullwarn -O2 #XF2= all: $(EXECUTABLE) ../bin/pd-gui ../bin/pd.tk ../bin/pd-watchdog VPATH=../obj INCLUDE = -I. -I../tk/unix/include -I../tcl/unix/include GLIB = ../tk/unix/lib/libtk8.4.a ../tcl/unix/lib/libtcl8.4.a -lm -lX11 LIB = -laudio -lmd -lm -lpthread CFLAGS = -DUNIX -DIRIX -DPD -DDL_OPEN $(XF1) $(XF2) LDFLAGS = $(XF1) $(XF2) SYSSRC = s_sgi.c SRC = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c g_io.c \ g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \ g_all_guis.c g_bang.c g_hdial.c g_hslider.c g_mycanvas.c g_numbox.c \ g_toggle.c g_vdial.c g_vslider.c g_vumeter.c \ m_pd.c m_class.c m_obj.c m_atom.c m_memory.c m_binbuf.c \ m_conf.c m_glob.c m_sched.c \ s_main.c s_inter.c s_unix.c s_file.c s_print.c \ s_loader.c s_path.c s_entry.c \ d_ugen.c d_ctl.c d_arithmetic.c d_osc.c d_filter.c d_dac.c d_misc.c \ d_math.c d_fft.c d_mayer_fft.c d_fftroutine.c d_array.c d_global.c \ d_delay.c d_resample.c \ x_arithmetic.c x_connective.c x_interface.c x_midi.c x_misc.c \ x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c d_soundfile.c \ $(SYSSRC) OBJ = $(SRC:.c=.o) GSRC = t_main.c t_tkcmd.c GOBJ = $(GSRC:.c=.o) .PHONY: pd gui .c.o: gcc $(CFLAGS) $(INCLUDE) -c -o $(VPATH)/$*.o $*.c pd: $(EXECUTABLE) gui: ../bin/pd-gui $(EXECUTABLE): $(OBJ) cd ../obj; gcc $(LDFLAGS) -o $(EXECUTABLE) $(OBJ) \ $(LIB) ../bin/pd-gui: $(GOBJ) cd ../obj; gcc $(LDFLAGS) -o ../bin/pd-gui $(GOBJ) \ $(GLIB) -lm -lX11 -v ../bin/pd.tk: u_main.tk; cp u_main.tk ../bin/pd.tk pd-watchdog: ../bin/pd-watchdog ../bin/pd-watchdog: s_watchdog.c gcc $(LDFLAGS) -o ../bin/pd-watchdog s_watchdog.c tags: $(SRC) $(GSRC); ctags *.[ch] depend:; gcc -M $(CFLAGS) $(INCLUDE) $(SRC) > makefile.dependencies include makefile.dependencies