summaryrefslogtreecommitdiff
path: root/tutorials/sndkit/morse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tutorials/sndkit/morse/Makefile')
-rw-r--r--tutorials/sndkit/morse/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/tutorials/sndkit/morse/Makefile b/tutorials/sndkit/morse/Makefile
new file mode 100644
index 0000000..79d36f5
--- /dev/null
+++ b/tutorials/sndkit/morse/Makefile
@@ -0,0 +1,27 @@
+INSTALLDIR=/usr/local/bin
+TARGETS=morse morse2 morse3 testgen loadcw
+CFLAGS=-I../../../include
+LDLAGS=
+
+all: $(TARGETS)
+
+morse2.o morse3.o morse.o testgen.o: charlist.h
+
+morse: morse.o
+ $(CC) $(LDFLAGS) -o morse morse.o -lm
+
+morse2: morse2.o
+ $(CC) $(LDFLAGS) -o morse2 morse2.o -lm
+
+morse3: morse3.o
+ $(CC) $(LDFLAGS) -o morse3 morse3.o -lm
+
+testgen: testgen.o
+ $(CC) $(LDFLAGS) -o testgen testgen.o -lm
+
+install: $(TARGETS)
+ cp -f $(TARGETS) randomcw Vvcw $(INSTALLDIR)
+ chmod 755 $(INSTALLDIR)/randomcw
+
+clean:
+ rm -f *.o $(TARGETS) core core.* x y z *~