-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.avago
More file actions
37 lines (25 loc) · 788 Bytes
/
Makefile.avago
File metadata and controls
37 lines (25 loc) · 788 Bytes
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
MESA = /tmp/Mesa-2.1
GLUT = $(MESA)/glut-3.2
X11 = /usr/openwin
CC = gcc
PROF =
OPT = -O3 -Wall -fshort-enums -DRENDERED_DISPLAY=1
#OPT = -fshort-enums -g -Wall
LOPT = -pg
INCLUDE = -I$(MESA)/include -I$(GLUT)
GLUT_LIBS = -L$(GLUT)/lib/glut -lglut
MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm
XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi
CFLAGS = $(PROF) $(OPT) $(INCLUDE)
LIBS = $(PROF) $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS)
TARGET = KnightCap
OBJS = knightcap.o trackball.o move.o util.o generate.o eval.o movement.o \
ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o \
testsuite.o
$(TARGET): $(OBJS)
-/usr/bin/mv $@ $@.old
$(CC) -o $@ $(OBJS) $(LOPT) $(LIBS)
proto:
cat *.c | nawk -f mkproto.awk > proto.h
clean:
/bin/rm -f *.o *~ $(TARGET)