diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-05-12 21:08:42 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-05-12 21:08:42 +0000 |
commit | c4a574a2ed490a9ec77efc1392260ee4305f1fbf (patch) | |
tree | 7ff4118df5c1231870c1cc63f56365b52a356ce2 /Makefile | |
parent | 0270a28cf6dcf0ebeff0e4d51b17c17fe195160e (diff) |
Builds, just, and runs.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
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 |