File: Makefile

package info (click to toggle)
xbomb 2.2b-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 280 kB
  • ctags: 180
  • sloc: ansic: 1,440; makefile: 86; sh: 22
file content (60 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download
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/CVS/xbomb/Makefile,v 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 -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) $(LDFLAGS)

########

%.o : %.c
	$(COMPILE) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $< -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