File: local-vars.mk

package info (click to toggle)
tome 2.3.5-2
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny, squeeze, wheezy
  • size: 15,844 kB
  • ctags: 13,854
  • sloc: ansic: 174,540; sh: 240; makefile: 11
file content (79 lines) | stat: -rw-r--r-- 2,553 bytes parent folder | download | duplicates (2)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
############################ -*- Mode: Makefile -*- ###########################
## local-vars.mk --- 
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
## Created On       : Sat Nov 15 10:43:00 2003
## Created On Node  : glaurung.green-gryphon.com
## Last Modified By : Manoj Srivastava
## Last Modified On : Mon Nov 24 23:44:41 2003
## Last Machine Used: glaurung.green-gryphon.com
## Update Count     : 18
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: 1a76a87e-7af5-424a-a30d-61660c8f243e
## 
###############################################################################

# Location of the source dir
SRCTOP    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
TMPTOP     = $(SRCTOP)/debian/tmp
PKG_DOC    = $(TMPTOP)/usr/share/doc/$(package)
PKG_MENU   = $(TMPTOP)/usr/lib/menu
PKG_DBASE  = $(TMPTOP)/usr/share/doc-base
PKG_INFO   = $(TMPTOP)/usr/share/info
PKG_MANDIR = $(TMPTOP)/usr/share/man/
PKG_MAN    = $(PKG_MANDIR)/man6
PKG_BIN    = $(TMPTOP)/usr/bin
PKG_MENUDIR= $(TMPTOP)/usr/share/menu
PKG_STATLIB= $(TMPTOP)/usr/lib/$(package)
PKG_LIBDIR = $(TMPTOP)/$(LIBDIR)

LINTIANDIR:= $(TMPTOP)/usr/share/lintian/overrides

# Make sure we stay in sync with the code
##LIBDIR := $(shell grep "define DEFAULT_PATH" src/config.h 2>/dev/null | \
##            sed -e 's/^.*DEFAULT_PATH *//g' -e 's/"//g')
## libdir should be /var/lib/games/$(package)/
LIBDIR = /var/games/$(package)

FILES_TO_CLEAN  = debian/files debian/buildinfo debian/substvars src/tome \
                  src/tolua
STAMPS_TO_CLEAN = 
DIRS_TO_CLEAN   = $(TMPTOP)



install_game=    /usr/bin/install -p -s -o root -g games -m 2755 $(STRIP)

CC      = gcc
CFLAGS  = -O2
PREFIX  = /usr
BINDIR  = $(PREFIX)/bin
MANDIR  = $(PREFIX)/share/man
MAN1DIR = $(MANDIR)/man1
MAN6DIR = $(MANDIR)/man6
DOCDIR  = $(PREFIX)/share/doc/$(package)
INFODIR = $(PREFIX)/share/info

##
## Variation -- All the ports that work in Linux at once.
## (Use the -m option to start the one you want.)
##
CFLAGS = -Wall -O2 -fno-strength-reduce -pipe -g  -D"USE_GCU" \
         -D"USE_TRANSPARENCY" -D"USE_XPJ" -D"USE_X11" -D"USE_XAW" -D"USE_LSL"
#
#                
LIBS = -lX11 -lcurses -lncurses -L/usr/X11R6/lib -lz -lvgagl -lvga $(PYLIB) \
       -lXaw -lXext -lSM -lICE -lXmu -lXt



define checkdir
	@test -f debian/rules -a -f src/main.c || \
          (echo Not in correct source directory; exit 1)
endef

define checkroot
	@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
endef