File: Makefile.alt

package info (click to toggle)
netmaze 0.81+jpg0.82-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,208 kB
  • ctags: 912
  • sloc: ansic: 8,277; tcl: 1,223; makefile: 60; sh: 26
file content (62 lines) | stat: -rw-r--r-- 1,812 bytes parent folder | download | duplicates (10)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

#linux:
CC = gcc
CFLAGS = -DSH_MEM -Wall -Wstrict-prototypes -O2 -m486 -fomit-frame-pointer
LDFLAGS = -static
#CFLAGS = -g -Wall

#other machines:
#CC = gcc
#CFLAGS = -O2 -DSH_MEM
#CFLAGS = -g -Wall

#HPUX-cc:
#CC = cc
#CFLAGS = +O2 -Aa -D_HPUX_SOURCE -DSH_MEM
#LDFLAGS = -L/usr/lib/X11R5

LIBS = -lXext -lX11 -lm

all:  netmaze netserv dummy

netmaze: x11cntrl.o draw_3d.o x11smiley.o x11gfx.o netmaze.o trigtab.h \
         netmaze.h network.o allmove.o network.h maze.o iocntl.o audio.o\
	 texture.o
	$(CC) -o $@ x11cntrl.o draw_3d.o netmaze.o x11gfx.o x11smiley.o \
                  network.o allmove.o maze.o iocntl.o audio.o texture.o \
  	          $(LDFLAGS) $(LIBS)

netserv: netserv.o network.h netmaze.h maze.o
	$(CC) -o $@ netserv.o maze.o

#Robot-Demonstration:
dummy:   dummy.o allmove.o robot.o network.o maze.o
	$(CC) -o $@ dummy.o allmove.o robot.o network.o maze.o

#Robots written by others: (see the *.c files for info/copyrights) 

betterbot:   better.o allmove.o robot.o network.o maze.o
        $(CC) -o $@ better.o allmove.o robot.o network.o maze.o -lm

follower:   follower.o allmove.o robot.o network.o maze.o
        $(CC) -o $@ follower.o allmove.o robot.o network.o maze.o -lm


netmaze.o:   netmaze.h config.h
netserv.o:   network.h netmaze.h config.h netcmds.h
network.o:   netmaze.h network.h config.h netcmds.h
x11gfx.o:    netmaze.h bitmap.h config.h
x11smiley.o: netmaze.h x11smiley.h config.h
x11cntrl.o:  netmaze.h config.h
allmove.o:   netmaze.h trigtab.h config.h
draw_3d.o:   netmaze.h trigtab.h config.h
maze.o:      netmaze.h defmaze.h config.h
robot.o:     netmaze.h trigtab.h network.h config.h
dummy.o:     netmaze.h config.h
iocntl.o:    netmaze.h config.h
audio.o:     config.h
better.o:    better.h

clean:
	rm -f *.o netserv netmaze dummy xtest/*.o betterbot