1#
2# This makefile is NOT generated by Imake.  See the README for more details.
3#
4        TASK		= xrobots
5        SCORE_FILE	= -DSCORE_FILE=\"./xrobotscores\"
6
7#
8# EDIT THIS or use the imakefile.
9#
10        INCDIR		= /home/X11
11        LIBDIR		= /home/X11/lib
12        LIBS		= -lXaw -lXt -lXmu -lX11 -lm
13
14#
15# if you plan on installing it...
16#
17#       TASK		= /usr/games/xrobots
18#       SCORE_FILE	= -DSCORE_FILE=\"/usr/games/lib/xrobotscores\"
19#
20# number of scores to save in the score file...
21#
22        MAXSCORES	= -DMAXSCORES=20
23#
24# dimension of the playfield...
25#
26        MAXX		= -DMAXX=35
27        MAXY		= -DMAXY=25
28
29        DEFINES		= $(SCORE_FILE) $(MAXSCORES) $(MAXX) $(MAXY)
30
31        DBXFLAGS	=
32        CFLAGS		= $(DBXFLAGS) -I$(INCDIR) $(DEFINES)
33        LDFLAGS		= $(DBXFLAGS) -L$(LIBDIR) $(LIBS)
34
35        CFILES		= main.c game.c actions.c graphics.c score.c
36        OBJECTS		= main.o game.o actions.o graphics.o score.o
37        INCLUDES	= bitmaps.h icon.h xrobots.h
38
39default: $(TASK)
40
41$(TASK): $(OBJECTS) $(INCLUDES)
42	cc -o $@ $(OBJECTS) $(LDFLAGS)
43
44.c.o:
45	cc -c $*.c $(CFLAGS)
46
47tags: $(CFILES) $(INCLUDES)
48	ctags -t $(INCLUDES) $(CFILES)
49
50lint:
51	lint -I$(INCDIR) $(CFILES)
52
53man::
54	nroff -man xrobots.nr
55
56clean::
57	rm -f $(OBJECTS)
58