summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8927c6766c2a723b5965287b2c5ea5fbdd5b60f6 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
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