summaryrefslogtreecommitdiff
path: root/Makefile
blob: c5e5493204c090cff1250817e59cd05b9d482066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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