VERS=$(shell sed <morse.spec -n -e '/Version: \(.*\)/s//\1/p')
-BEEPERS = beepLinux.c beepOSS.c beepX11.c
-SOURCES = alarm.c morse.c alarm.h beep.h $(BEEPERS)
MANPAGES = morse.1 QSO.1
DOCS = README HISTORY morse.xml morse.spec $(MANPAGES)
-ALL= $(DOCS) Makefile $(SOURCES) test_input qso.d/*.[ch] qso.d/Makefile
-
-# The flags necessary to link with the X11 libraries.
-X11LIBS = -L/usr/X11/lib -lX11
-
-# Any additional flags your favorite C compiler requires to work.
-CFLAGS = -O3 ${DEFINES}
+ALL= $(DOCS) Makefile $(SOURCES) test_input \
+ morse.d/*.[ch] morse.d/Makefile \
+ qso.d/*.[ch] qso.d/Makefile
default:
- make test
+ make testmorse
all: morse QSO morse.1 QSO.1
-morse: morse${DEVICE}
- rm -f $@
- ln morse${DEVICE} $@
-
-morseX11: morse.o beepX11.o alarm.o
- $(CC) -o $@ morse.o beepX11.o alarm.o $(X11LIBS)
-
-morseLinux: morse.o beepLinux.o alarm.o
- $(CC) -o $@ morse.o beepLinux.o alarm.o -lm
-
-morseOSS: morse.o beepOSS.o
- $(CC) $(CFLAGS) -o $@ morse.o beepOSS.o -lm
+morse:
+ cd morse.d && make DEVICE=${DEVICE}
+ ln morse.d/morse ./morse
QSO:
cd qso.d && make
# letter exactly once. He rejected it because it contains "BMW", alas, but
# he did say it's the closest he's seen so far. - Joe Dellinger
#
-test: morse QSO
+testmorse: morse QSO
(cat test_input; qso.d/QSO) | morse -w 24 -l -e
testqso: morse QSO
all: morse QSO
clean:
- rm -f *.o morse QSO morseX11 morseLinux morseOSS
+ rm -f morse QSO
+ cd morse.d; make clean
cd qso.d; make clean
pristine: clean
rm -f $(MANPAGES)
-morse.o: beep.h Makefile
-beepX11.o: beep.h alarm.h
-beepLinux.o: beep.h alarm.h
-beepOSS.o: beep.h
-alarm.o: alarm.h
-
morse.1: morse.xml
xmlto man morse.xml
URL: http://catb.org/~esr/morse/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
+#Destinations: mailto:geojoe@freeusp.org, mailto:pjd@cs.tufts.edu, mailto:jmaynard@conmicro.cx
%description
morse is a Morse-code training program for aspiring radio hams. It
%changelog
* Mon Jan 24 2005 Eric S. Raymond <esr@snark.thyrsus.com> -
-- Initial build. See HISTORY file for prior history.
+- Initial build. See HISTORY file in the distribution for prior history.