/[baselayout]/branches/baselayout-1_12/src/Makefile
Gentoo

Contents of /branches/baselayout-1_12/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1462 - (show annotations) (download)
Fri Sep 2 07:49:48 2005 UTC (9 years, 3 months ago) by azarah
File size: 1047 byte(s)
Split the enviroment whitelist for runscript into a system and user part.
Update it to use LIBDIR so that we can set 'lib' or 'lib64'.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 CC = gcc
6 LD = gcc
7
8 CFLAGS = -Wall -O2
9 DESTDIR =
10 LIBDIR = lib
11
12 BIN_TARGETS =
13 SBIN_TARGETS = consoletype runscript start-stop-daemon
14 SYS_WHITELIST = env_whitelist
15
16 TARGET = $(BIN_TARGETS) $(SBIN_TARGETS)
17
18 OS = Linux
19 ifeq ($(OS),Linux)
20 LDFLAGS_RS = -ldl
21 endif
22 ifeq ($(OS),BSD)
23 LDFLAGS_SSD = -lkvm
24 endif
25
26 CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
27
28 all: $(TARGET)
29
30 rs-misc.o: core/misc.c
31 $(CC) $(CFLAGS) -c -o $@ $^
32
33 runscript: runscript.o rs-misc.o
34 $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_RS)
35
36 start-stop-daemon: start-stop-daemon.c
37 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDFLAGS_SSD)
38
39 install: $(TARGET)
40 install -m 0755 -d $(DESTDIR)/bin
41 install -m 0755 -d $(DESTDIR)/sbin
42 # install -m 0755 $(BIN_TARGETS) $(DESTDIR)/bin
43 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin
44 install -m 0755 -d $(DESTDIR)/$(LIBDIR)/rcscripts/conf.d
45 install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(LIBDIR)/rcscripts/conf.d
46
47 clean:
48 rm -f $(TARGET)
49 rm -f *.o *~

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20