/[pkg-lvm]/lvm10/trunk/1.0.8/make.tmpl.in
ViewVC logotype

Contents of /lvm10/trunk/1.0.8/make.tmpl.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations) (download)
Wed Feb 16 16:15:56 2005 UTC (8 years, 4 months ago) by waldi
File size: 2701 byte(s)
Initial trunk from 1.0.8.
1 # @configure_input@
2 #
3 # make.tmpl.in
4 #
5 # Copyright (C) 1997 - 2000 Heinz Mauelshagen, Germany
6 #
7 # February 1997
8 # May,June 1998
9 # January 1999
10 # February 2000
11 #
12 # lvm is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2, or (at your option)
15 # any later version.
16 #
17 # lvm is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with GNU CC; see the file COPYING. If not, write to
24 # the Free Software Foundation, 59 Temple Place - Suite 330,
25 # Boston, MA 02111-1307, USA.
26 #
27 #
28 # top level make template
29 #
30
31 # autoconf defines
32
33 CC = @CC@
34
35 # Setup directory variables
36 prefix = @prefix@
37 exec_prefix = @exec_prefix@
38 bindir = @bindir@
39 staticlibdir = ${prefix}/lib
40 libdir = @libdir@
41 sbindir = @sbindir@
42 infodir = @infodir@
43 mandir = @mandir@
44 topobjdir = @topobjdir@
45 # setup misc variables
46 # define the ownership variables for the binaries and man pages
47 OWNER=@OWNER@
48 GROUP=@GROUP@
49
50 # helper scripts
51 UNINSTALL = ${TOP}/autoconf/uninstall.pl
52
53 # The number of jobs to run, if blank, defaults to the make standard
54 ifndef MAKEFLAGS
55 MAKEFLAGS = @JOBS@
56 endif
57
58 .SUFFIXES =
59 .SUFFIXES = .o.po.c
60
61 %.a: %.o
62 $(AR) -r $@ $<
63
64 %.o: %.c
65 $(CC) -c -pipe $(CFLAGS) -o $@ $<
66
67 %.po: %.c
68 $(CC) -c -pipe $(CFLAGS) -fPIC -o $@ $<
69
70 %: %.o $(LIBS)
71 $(CC) $(LDFLAGS) $< $(LOADLIBES) $(LDLIBS) -o $@
72
73 CFLAGS+= @CFLAGS@ -Wall
74
75 ALL_SOURCES := $(foreach dir,. $(subst :, ,$(VPATH)),$(wildcard $(dir)/*.c))
76 ALL_TARGETS := $(notdir $(ALL_SOURCES:.c=))
77 ALL_EXECS = $(ALL_TARGETS)
78 ALL_HEADERS := $(notdir $(foreach dir,. $(subst :, ,$(VPATH)),$(wildcard $(dir)/*.h)))
79 ALL_FILES = $(ALL_SOURCES) $(ALL_HEADERS)
80 ALL_OBJECTS := $(notdir $(ALL_SOURCES:.c=.o))
81 ALL_POBJECTS := $(notdir $(ALL_SOURCES:.c=.po))
82 OTHER_DEP = Makefile
83
84 all:
85 @for d in $(SUBDIRS); do \
86 if [ "$$d" = "." ]; then \
87 $(MAKE) all_this; \
88 else \
89 $(MAKE) -C $$d all; \
90 fi; \
91 done
92
93 install: all
94 @for d in $(SUBDIRS); do \
95 if [ "$$d" = "." ]; then \
96 $(MAKE) install_this; \
97 else \
98 $(MAKE) -C $$d install; \
99 fi; \
100 done
101
102 i: install
103
104 remove:
105 @for d in $(SUBDIRS); do \
106 if [ "$$d" = "." ]; then \
107 $(MAKE) -C $$d remove_this; \
108 else \
109 $(MAKE) -C $$d remove;\
110 fi; \
111 done
112
113 clean:
114 @for d in $(SUBDIRS); do \
115 if [ "$$d" = "." ]; then \
116 $(MAKE) clean_this; \
117 else \
118 $(MAKE) -C $$d clean; \
119 fi; \
120 done

  ViewVC Help
Powered by ViewVC 1.1.5