File: Makefile

package info (click to toggle)
xbomb 2.2a-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 240 kB
  • sloc: ansic: 1,440; makefile: 30; sh: 17
file content (60 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (7)
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
# $Header: /home/amb/xbomb/RCS/Makefile 1.13 1996/01/20 21:02:46 amb Exp $
#
# XBomb - 'Minesweeper' game - Version 2
#
# Makefile.
#
# Written by Andrew M. Bishop
#
# This file Copyright 1994 1995 Andrew M. Bishop
# It may be distributed under the GNU Public License, version 2, or
# any higher version.  See section COPYING of the GNU Public license
# for conditions under which this file may be redistributed.
#

CC=gcc
CFLAGS=-O2

INCLUDES=

LIB=

XLIB=-L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11

COMPILE=$(CC) -c $(CFLAGS)

LINK=$(CC)

OBJ=xbomb.o xwindow.o hiscore.o

INSTDIR=/usr/local

########

xbomb : $(OBJ)
	$(LINK) $(OBJ) -o $@ $(LIB) $(XLIB)

########

%.o : %.c
	$(COMPILE) $< -o $@ $(INCLUDES)

xbomb.o   : xbomb.c   xbomb.h
xwindow.o : xwindow.c xbomb.h icon.h
hiscore.o : hiscore.c xbomb.h

########

clean :
	-rm -f *.o *~ core

########

install :
	strip xbomb
	install -d $(INSTDIR)/bin
	install -d $(INSTDIR)/man/man6
	install -d $(INSTDIR)/lib/app-defaults
	install -m 755 xbomb $(INSTDIR)/bin
	install -m 644 xbomb.6 $(INSTDIR)/man/man6
	install -m 644 xbomb.ad $(INSTDIR)/lib/app-defaults/XBomb