summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-05-13 20:25:51 +0000
committerIan C <ianc@noddybox.co.uk>2020-05-13 20:25:51 +0000
commit58b60d1455a6670cbfb1572257460065fe7e6207 (patch)
tree2a5278c4534a16bcf08dad5433b6f8fb60368ede /Makefile
parent983bba81d89ba877e8870251d92f64e16cf901c0 (diff)
Builds (just) and runs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8927c67
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+# Makfile
+#
+
+OPTIM=-g
+OBJ=dash
+CC=cc
+
+# Uncomment the following line if your system does not support usleep()
+#
+# USLEEP=-DNOUSLEEP
+
+# For Suns - edit if your system is awkward too
+#
+INCLUDE_PATH=-I/usr/openwin/include -I/usr/5include
+LIB_PATH=-L/usr/openwin/lib -L/usr/5lib
+
+# Shouldn't need to edit below here
+#
+OPTS=$(OPTIM) $(USLEEP)
+
+ALL=dash spred
+
+all: $(ALL)
+
+$(OBJ): Xbit.o $(OBJ).o
+ $(CC) $(OPTS) $(LIB_PATH) -o $(OBJ) $(OBJ).o Xbit.o -lXext -lX11 -lm -lcurses -ltermcap
+
+Xbit.o: Xbit.c Xbit.h
+ $(CC) $(OPTS) $(INCLUDE_PATH) -c Xbit.c
+
+$(OBJ).o: Xbit.h $(OBJ).c
+ $(CC) $(OPTS) $(INCLUDE_PATH) -c $(OBJ).c
+
+spred: Xbit.o spred.o
+ $(CC) $(OPTS) $(LIB_PATH) -o spred spred.o Xbit.o -lXext -lX11 -lm
+
+spred.o: Xbit.h spred.c
+ $(CC) $(OPTS) $(INCLUDE_PATH) -c spred.c
+
+clean:
+ rm -f $(ALL) *.o core