summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c5e5493
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+# Makfile
+#
+OPTS=-g
+OBJ=galax
+CC=cc
+
+# Paths to X11 includes and libraries. Edit as appropriate for your system
+#
+DIRS=-L/usr/openwin/lib -I/usr/openwin/include -L/usr/X11R6/lib
+
+# Add on -lsocket for solaris 2 (and perhaps other SysV's)
+#
+LIB=-lXext -lX11 -lm
+
+ALL: $(OBJ)
+
+$(OBJ): Xbit.o $(OBJ).o
+ $(CC) $(OPTS) $(DIRS) -o $(OBJ) $(OBJ).o Xbit.o $(LIB)
+
+$(OBJ).o: Xbit.h $(OBJ).c
+ $(CC) $(OPTS) $(DIRS) -c $(OBJ).c
+
+Xbit.o: Xbit.c Xbit.h fontset.h
+ $(CC) $(OPTS) $(DIRS) -c Xbit.c
+
+clean:
+ rm -f Xbit.o $(OBJ).o $(OBJ) core hisc.gal