summaryrefslogtreecommitdiff
path: root/tutorials/sndkit/dsp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tutorials/sndkit/dsp/Makefile')
-rw-r--r--tutorials/sndkit/dsp/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/tutorials/sndkit/dsp/Makefile b/tutorials/sndkit/dsp/Makefile
new file mode 100644
index 0000000..1cfa1ec
--- /dev/null
+++ b/tutorials/sndkit/dsp/Makefile
@@ -0,0 +1,31 @@
+#CC = gcc
+#CFLAGS = -O6 -m486 -funroll-loops -Wall
+CFLAGS = -O -I../../../include
+#LD = gcc
+LD = cc
+#LDFLAGS = -s -N
+LDFLAGS = -s
+
+INSTALLDIR = /usr/local/bin
+
+.c.o:
+# $(CC) -c $(CFLAGS) -o $*.o $<
+ $(CC) -c $(CFLAGS) $<
+
+all: srec
+
+install: all
+ cp srec $(INSTALLDIR)
+ ln -sf $(INSTALLDIR)/srec $(INSTALLDIR)/splay
+ chown root $(INSTALLDIR)/splay $(INSTALLDIR)/srec
+ chmod 755 $(INSTALLDIR)/splay $(INSTALLDIR)/srec
+ cd str;make install
+
+srec: recplay.o help.o
+ $(LD) $(LDFLAGS) recplay.o help.o -o srec
+
+clean:
+ rm -f $(OBJS) *.o srec a.out core
+ cd str;make clean
+
+recplay.o: recplay.c