--- /dev/null
+++ b/Makefile
@@ -0,0 +1,252 @@
+# Makefile for HEYU, a program to control an X10 CM11A computer interface.
+# This makefile is generated by the Configure program.
+#
+BIN = /usr/bin
+MAN = /usr/man/man1
+MAN5 = /usr/man/man5
+GROUP = sys
+OWNER = root
+
+#       set DFLAGS equal to:
+#          -DSYSV       if using SYSTEM V
+#          -DVOID       if compiler doesn't understand 'void'
+
+#This makefile is built for linux
+DFLAGS = -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ -DHASCM17A
+LIBS = -lm -lc
+# # The rest of the makefile should need no changes
+
+## Makefile template for Heyu, a program to control an X10 CM11A computer
+## interface.  From this point on the Makefile is copied from Makefile.in
+## by the Configure program
+
+SRCS =	date.c erase.c info.c  message.c relay.c \
+	monitor.c reset.c setclock.c stop.c \
+	tty.c x10.c xread.c xwrite.c status.c cm11a.c \
+	eeprom.c process.c sun.c cmd.c config.c x10state.c \
+	poll.c modules.c cm17a.c xsync.c timing.c cm10a.c \
+	tty_aux.c relay_aux.c x10aux.c rfxcom.c digimax.c oregon.c
+OBJS =	date.o erase.o info.o message.o relay.o \
+	monitor.o reset.o setclock.o stop.o \
+	tty.o x10.o xread.o xwrite.o status.o cm11a.o \
+	eeprom.o process.o sun.o cmd.o config.o x10state.o \
+	poll.o modules.o cm17a.o xsync.o timing.o cm10a.o \
+	tty_aux.o relay_aux.o x10aux.o rfxcom.o digimax.o oregon.o
+
+OTHERSRC = README README2 Makefile x10config.sample protocol.txt eeprom.h \
+	x10.sched.sample  heyu.1 x10.h x10config.5 x10cm17a.5 \
+	history.txt version.h heyufaq.txt x10sched.5 process.h sun.h \
+	x10scripts.5 Configure Makefile.in install.sh INSTALL LICENSE \
+        README.cm10a x10aux.5 x10state.h rfxcom.h digimax.h oregon.h x10rfxsensors.5\
+	x10rfxmeters.5 x10digimax.5 x10oregon.5
+
+EVERYTHING = $(OTHERSRC) $(SRCS)
+
+all:	heyu
+
+heyu:	$(OBJS) version.h
+	$(CC) $(LDFLAGS) -o heyu $(OBJS) $(LIBS)
+	@echo `id` >usergroup.tmp
+	@echo ${HOME}  >userhome.tmp
+	@echo ""
+	@echo "** Now become root and run 'make install' **"
+	@echo ""
+
+$(OBJS): x10.h process.h sun.h Makefile
+
+eeprom.o:	eeprom.h
+info.o:		version.h
+x10state.o:	x10state.c x10state.h rfxcom.h digimax.h oregon.h
+rfxcom.o:	rfxcom.c x10state.h rfxcom.h
+digimax.o:	digimax.c x10state.h digimax.h
+oregon.o:	oregon.c x10state.h oregon.h
+modules.o:	modules.c oregon.h
+poll.o:		poll.c oregon.h
+
+install: $(BIN)/heyu  $(MAN)/heyu.1 $(MAN5)/x10config.5 $(MAN5)/x10sched.5 \
+	$(MAN5)/x10scripts.5 $(MAN5)/x10cm17a.5 $(MAN5)/x10aux.5 \
+	$(MAN5)/x10rfxsensors.5 $(MAN5)/x10rfxmeters.5 $(MAN5)/x10digimax.5 \
+	$(MAN5)/x10oregon.5
+
+maninstall: $(MAN)/heyu.1 $(MAN5)/x10config.5 $(MAN5)/x10sched.5 \
+	$(MAN5)/x10scripts.5 $(MAN5)/x10cm17a.5 $(MAN5)/x10aux.5 \
+	$(MAN5)/x10rfxsensors.5 $(MAN5)/x10rfxmeters.5 \
+	$(MAN5)/x10digimax.5 $(MAN5)/x10oregon.5
+
+uninstall:
+	rm -f $(BIN)/heyu
+	rm -f $(MAN)/heyu.1
+	rm -f $(MAN5)/x10config.5
+	rm -f $(MAN5)/x10sched.5
+	rm -f $(MAN5)/x10scripts.5
+	rm -f $(MAN5)/x10cm17a.5
+	rm -f $(MAN5)/x10aux.5
+	rm -f $(MAN5)/x10rfxsensors.5
+	rm -f $(MAN5)/x10rfxmeters.5
+	rm -f $(MAN5)/x10digimax.5
+	rm -f $(MAN5)/x10oregon.5
+
+$(BIN)/heyu:	heyu
+	mkdir -p -m 755 $(BIN)
+	cp heyu $(BIN)
+	chgrp $(GROUP) $(BIN)/heyu
+	chmod 755 $(BIN)/heyu
+	chown $(OWNER) $(BIN)/heyu
+	./install.sh
+
+$(MAN)/heyu.1: heyu.1
+	mkdir -p -m 755 $(MAN)
+	cp heyu.1 $(MAN)
+	chmod 644 $(MAN)/heyu.1
+
+$(MAN5)/x10config.5: x10config.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10config.5 $(MAN5)
+	chmod 644 $(MAN5)/x10config.5
+
+$(MAN5)/x10sched.5: x10sched.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10sched.5 $(MAN5)
+	chmod 644 $(MAN5)/x10sched.5
+
+$(MAN5)/x10scripts.5: x10scripts.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10scripts.5 $(MAN5)
+	chmod 644 $(MAN5)/x10scripts.5
+
+$(MAN5)/x10cm17a.5: x10cm17a.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10cm17a.5 $(MAN5)
+	chmod 644 $(MAN5)/x10cm17a.5
+
+$(MAN5)/x10aux.5: x10aux.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10aux.5 $(MAN5)
+	chmod 644 $(MAN5)/x10aux.5
+
+$(MAN5)/x10rfxsensors.5: x10rfxsensors.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10rfxsensors.5 $(MAN5)
+	chmod 644 $(MAN5)/x10rfxsensors.5
+
+$(MAN5)/x10rfxmeters.5: x10rfxmeters.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10rfxmeters.5 $(MAN5)
+	chmod 644 $(MAN5)/x10rfxmeters.5
+
+$(MAN5)/x10digimax.5: x10digimax.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10digimax.5 $(MAN5)
+	chmod 644 $(MAN5)/x10digimax.5
+
+$(MAN5)/x10oregon.5: x10oregon.5
+	mkdir -p -m 755 $(MAN5)
+	cp x10oregon.5 $(MAN5)
+	chmod 644 $(MAN5)/x10oregon.5
+
+lint:
+	lint $(DFLAGS) $(SRCS)
+
+shar:	x10_heyu.shar.1 x10_heyu.shar.2
+
+x10.o:	x10.c version.h
+process.o:	process.c version.h
+xread.o:	xread.c local.h
+
+ci:	$(SRCS) index.html Makefile
+	@ for FL in $+ ; do \
+	if test -w $$FL ; then \
+        ci -l $$FL ;\
+	fi ;\
+	done
+
+x10_heyu.shar.1:
+	shar $(OTHERSRC) >x10_heyu.shar.1
+
+x10_heyu.shar.2:
+	shar $(SRCS) > x10_heyu.shar.2
+
+bigshar:
+	shar $(EVERYTHING) > x10_heyu.shar
+
+tar:    x10_heyu.tgz
+
+x10_heyu.tgz:	$(EVERYTHING)
+	rm -fr heyu.dir
+	mkdir heyu.dir
+	cp -p $(EVERYTHING) heyu.dir
+	cp Makefile.dist heyu.dir/Makefile
+	tar -czvf x10_heyu.tgz heyu.dir
+
+heyudistro:	$(EVERYTHING)
+	rm -rf distro.dir
+	mkdir distro.dir
+	cp -p $(EVERYTHING) distro.dir
+	cp -p release_notes.txt distro.dir
+	cp -p INSTALL distro.dir/README.INSTALL
+	rm distro.dir/Makefile
+
+man2html:
+	man2html heyu.1 >./html/heyu.1.html
+	man2html x10config.5 >./html/x10config.5.html
+	man2html x10scripts.5 > ./html/x10scripts.5.html
+	man2html x10sched.5 > ./html/x10sched.5.html
+	man2html x10aux.5 > ./html/x10aux.5.html
+	man2html x10cm17a.5 > ./html/x10cm17a.5.html
+	man2html x10rfxsensors.5 > ./html/x10rfxsensors.5.html
+	man2html x10rfxmeters.5 > ./html/x10rfxmeters.5.html
+	man2html x10digimax.5 > ./html/x10digimax.5.html
+	man2html x10oregon.5 > ./html/x10oregon.5.html
+
+beta:	x10_beta.tgz
+
+x10_beta.tgz: $(EVERYTHING)
+	rm -fr heyu.beta
+	mkdir heyu.beta
+	cp -p $(EVERYTHING) heyu.beta
+	cp Makefile.dist heyu.dir/Makefile
+	tar -czvf x10_beta.tgz heyu.beta
+
+zip:	x10_heyu.zip
+
+x10_heyu.zip:	$(EVERYTHING)
+	rm -f x10_heyu.zip
+	zip -kl x10_heyu.zip $(EVERYTHING)
+
+touch:
+	touch $(OTHERSRC)
+	touch $(SRCS)
+
+clean:
+	rm -f *.o
+
+clobber: clean
+	rm -f heyu
+
+upload:	heyu index.html x10_heyu.tgz x10_heyu.zip
+	/bin/sh -c ./upload.sh
+
+rcsdiffrw:
+	@-for x in `$(MAKE) rw`	;\
+	do	\
+		echo 		;\
+		echo $$x	;\
+		echo =========	;\
+		rcsdiff $$x	;\
+	done 2>&1		;\
+	echo			;\
+	echo all done
+
+list:
+	@ls $(EVERYTHING) | more
+
+rw:
+	@ls -l $(EVERYTHING) | \
+		egrep '^[^l].w' | \
+		sed 's;.* ;;'   # strip to last space
+
+populate: $(EVERYTHING)
+
+$(EVERYTHING):
+##	co -r$(revision) $@
+
--- /dev/null
+++ b/local.h
@@ -0,0 +1,3 @@
+#define USESIGINT 1'
+#define SPOOLDIR "/tmp"
+#define LOCKDIR "/tmp"
