From c4a574a2ed490a9ec77efc1392260ee4305f1fbf Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 12 May 2020 21:08:42 +0000 Subject: Builds, just, and runs. --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3