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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1461 Revision 1462
5CC = gcc 5CC = gcc
6LD = gcc 6LD = gcc
7 7
8CFLAGS = -Wall -O2 8CFLAGS = -Wall -O2
9DESTDIR = 9DESTDIR =
10LIBDIR = lib
10 11
11BIN_TARGETS = 12BIN_TARGETS =
12SBIN_TARGETS = consoletype runscript start-stop-daemon 13SBIN_TARGETS = consoletype runscript start-stop-daemon
14SYS_WHITELIST = env_whitelist
13 15
14TARGET = $(BIN_TARGETS) $(SBIN_TARGETS) 16TARGET = $(BIN_TARGETS) $(SBIN_TARGETS)
15 17
16OS = Linux 18OS = Linux
17ifeq ($(OS),Linux) 19ifeq ($(OS),Linux)
18LDFLAGS_RS = -ldl 20LDFLAGS_RS = -ldl
19endif 21endif
20ifeq ($(OS),BSD) 22ifeq ($(OS),BSD)
21LDFLAGS_SSD = -lkvm 23LDFLAGS_SSD = -lkvm
22endif 24endif
25
26CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
23 27
24all: $(TARGET) 28all: $(TARGET)
25 29
26rs-misc.o: core/misc.c 30rs-misc.o: core/misc.c
27 $(CC) $(CFLAGS) -c -o $@ $^ 31 $(CC) $(CFLAGS) -c -o $@ $^
35install: $(TARGET) 39install: $(TARGET)
36 install -m 0755 -d $(DESTDIR)/bin 40 install -m 0755 -d $(DESTDIR)/bin
37 install -m 0755 -d $(DESTDIR)/sbin 41 install -m 0755 -d $(DESTDIR)/sbin
38# install -m 0755 $(BIN_TARGETS) $(DESTDIR)/bin 42# install -m 0755 $(BIN_TARGETS) $(DESTDIR)/bin
39 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin 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
40 46
41clean: 47clean:
42 rm -f $(TARGET) 48 rm -f $(TARGET)
43 rm -f *.o *~ 49 rm -f *.o *~

Legend:
Removed from v.1461  
changed lines
  Added in v.1462

  ViewVC Help
Powered by ViewVC 1.1.20