File: Makefile

package info (click to toggle)
wmanager 0.2.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 244 kB
  • ctags: 64
  • sloc: cpp: 529; makefile: 111; sh: 70
file content (116 lines) | stat: -rw-r--r-- 2,551 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# $RCSfile: Makefile,v $
# Makefile for WManager
#
#! author="$Author: M $"
#! revision="$Revision: 1.4 $"
#! date="$Date: 1999/11/14 15:29:24 $"
#! state="$State: Exp $"
#
#
# Copyright (C) 1999  M. Tessmer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.



# make settings
SHELL     = /bin/sh
MAKEFLAGS = --print-directory


# compiler settings
CXX       = g++ 
CXXFLAGS  = -I$(incdir) -O2 -Wall -pedantic #-DDEBUG=1 -g3


# linker settings
LD        = g++
LDFLAGS   = -lfltk -lXext -lX11 -lm
LDDIRS    = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib


# install settings
INSTALL       = /usr/bin/install
INSTALL_FLAGS = --strip


# documentation tool
DOCTOOL      = perceps
DOCTOOL_FLAGS = -a -b -f -h -m -r

# base locations
prefix      = /usr/local
exec_prefix = $(prefix)
bindir      = $(exec_prefix)/bin


# include files and sources
incdir      = ./inc
srcdir      = ./src


# documentational files for developer
docdir    = ./doc
templates = $(docdir)/templates


# search paths
vpath %.H    $(incdir)
vpath %.cc   $(srcdir)
vpath %.html $(docdir)

# files
HDR  = Interface.H WManager.H
SRC  = Interface.cc WManager.cc wmanager.cc
MISC = HISTORY README COPYING INSTALL TAGS FAQ LICENSE NEWS TODO Makefile \
	.wmanagerrc .xinitrc
OBJ  = $(patsubst %.cc,%.o,$(SRC)) 


# project version
VERSION = 0.1.1


all: wmanager TAGS

wmanager: $(OBJ)
	$(LD) -o $@ $^ $(LDDIRS) $(LDFLAGS) 

static: $(OBJ)
	$(LD) -o wmanager $^ $(LDDIRS) $(LDFLAGS) -static

install: wmanager
	$(INSTALL) $< $(bindir)/$<

clean:
	@rm -f $(OBJ) wmanager

distclean:
	@rm -f $(OBJ) wmanager TAGS

doc: $(HDR)
	$(DOCTOOL) $(DOCTOOL_FLAGS) -d $(docdir) -t $(templates) $< 

TAGS: $(HDR) $(SRC)
	etags --c++ -o $@ $^

version:
	@-echo -e '\nwmanager - X11 window manager selector'
	@-echo 'v$(VERSION) 1999/09/26 by M. Tessmer'
	@-echo 'Look at README for more information\n'


# phony targets
.PHONY: all clean distclean TAGS version doc