~ubuntu-branches/ubuntu/wily/msrtool/wily-proposed

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-04-11 03:37:56 UTC
  • Revision ID: james.westby@ubuntu.com-20090411033756-e1ltraq7eoi86vnd
Tags: upstream-0.0+r4091
ImportĀ upstreamĀ versionĀ 0.0+r4091

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for msrtool
 
2
#
 
3
# This file is part of msrtool.
 
4
#
 
5
# Copyright (c) 2008 Peter Stuge <peter@stuge.se>
 
6
#
 
7
# This program is free software; you can redistribute it and/or modify
 
8
# it under the terms of the GNU General Public License version 2 as
 
9
# published by the Free Software Foundation.
 
10
#
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License
 
17
# along with this program; if not, write to the Free Software
 
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
19
#
 
20
 
 
21
PROGRAM = msrtool
 
22
 
 
23
CC      = @CC@
 
24
INSTALL = @INSTALL@
 
25
PREFIX  = @PREFIX@
 
26
CFLAGS  = @CFLAGS@
 
27
LDFLAGS = @LDFLAGS@
 
28
 
 
29
TARGETS = geodelx.o cs5536.o k8.o
 
30
SYSTEMS = linux.o
 
31
OBJS    = $(PROGRAM).o msrutils.o sys.o $(SYSTEMS) $(TARGETS)
 
32
 
 
33
all: $(PROGRAM)
 
34
 
 
35
$(PROGRAM): $(OBJS) Makefile.deps
 
36
        $(CC) -o $@ $(OBJS) $(LDFLAGS)
 
37
 
 
38
$(PROGRAM).o: $(PROGRAM).c
 
39
        $(CC) $(CFLAGS) -DVERSION='"@VERSION@"' -c $< -o $@
 
40
 
 
41
install: $(PROGRAM)
 
42
        $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
 
43
        mkdir -p $(PREFIX)/share/man/man8
 
44
        $(INSTALL) $(PROGRAM).8 $(PREFIX)/share/man/man8
 
45
 
 
46
distprep: distclean Makefile.deps
 
47
 
 
48
clean:
 
49
        rm -f $(PROGRAM) $(OBJS)
 
50
 
 
51
distclean: clean
 
52
        rm -f Makefile
 
53
 
 
54
mrproper: distclean
 
55
        rm -f Makefile.deps
 
56
 
 
57
dep:
 
58
        rm -f Makefile.deps
 
59
        $(MAKE) Makefile.deps
 
60
 
 
61
Makefile.deps: $(patsubst %.o,%.c,$(OBJS))
 
62
        $(CC) -MM $^ > $@
 
63
 
 
64
.PHONY: all distprep clean distclean mrproper dep
 
65
 
 
66
-include Makefile.deps