/[gentoo-src]/rc-scripts/src/Makefile
Gentoo

Contents of /rc-scripts/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Dec 23 19:15:06 2004 UTC (15 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +11 -6 lines
merge freebsd fixes

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-src/rc-scripts/src/Makefile,v 1.8 2004/08/23 06:39:42 vapier Exp $
4
5 CC = gcc
6 LD = gcc
7
8 CFLAGS = -Wall -O2
9 DESTDIR =
10
11 BIN_TARGETS =
12 SBIN_TARGETS = consoletype runscript start-stop-daemon
13
14 TARGET = $(BIN_TARGETS) $(SBIN_TARGETS)
15
16 OS = Linux
17 ifeq ($(OS),Linux)
18 LDFLAGS_RS = -ldl
19 endif
20 ifeq ($(OS),BSD)
21 LDFLAGS_SSD = -lkvm
22 endif
23
24 all: $(TARGET)
25
26 runscript: runscript.o
27 $(LD) $(LDFLAGS) $(LDFLAGS_RS) $^ -o $@
28
29 start-stop-daemon: start-stop-daemon.c
30 $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SSD) $^ -o $@
31
32 install: $(TARGET)
33 install -m 0755 -d $(DESTDIR)/bin
34 install -m 0755 -d $(DESTDIR)/sbin
35 # install -m 0755 $(BIN_TARGETS) $(DESTDIR)/bin
36 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin
37
38 clean:
39 rm -f $(TARGET)
40 rm -f *.o *~ core

  ViewVC Help
Powered by ViewVC 1.1.20