/[baselayout]/trunk/src/Makefile
Gentoo

Diff of /trunk/src/Makefile

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

Revision 2768 Revision 2799
28LIBEINFOSO = libeinfo.so.$(LIBRCSOVER) 28LIBEINFOSO = libeinfo.so.$(LIBRCSOVER)
29LIBEINFOOBJS= libeinfo.o 29LIBEINFOOBJS= libeinfo.o
30 30
31LIBRCSOVER = 0 31LIBRCSOVER = 0
32LIBRCSO = librc.so.$(LIBRCSOVER) 32LIBRCSO = librc.so.$(LIBRCSOVER)
33LIBRCOBJS= librc.o librc-depend.o librc-daemon.o librc-misc.o librc-strlist.o 33LIBRCOBJS= librc.o librc-depend.o librc-daemon.o librc-misc.o librc-strlist.o \
34 env-update.o fstabinfo.o mountinfo.o \
35 rc-depend.o rc-status.o runscript.o start-stop-daemon.o
34 36
35LIB_TARGETS = $(LIBEINFOSO) $(LIBRCSO) 37LIB_TARGETS = $(LIBEINFOSO) $(LIBRCSO)
36BIN_TARGETS = rc-status 38SBIN_TARGETS = rc
37SBIN_TARGETS = env-update rc rc-update runscript start-stop-daemon
38PRIV_BIN_TARGETS = fstabinfo mountinfo rc-depend
39SYS_WHITELIST = env_whitelist 39SYS_WHITELIST = env_whitelist
40 40
41TARGET = $(LIB_TARGETS) $(BIN_TARGETS) $(SBIN_TARGETS) $(PRIV_BIN_TARGETS) 41TARGET = $(LIB_TARGETS) $(BIN_TARGETS) $(SBIN_TARGETS) $(PRIV_BIN_TARGETS)
42 42
43RCLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \ 43RCLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
49 service_coldplugged \ 49 service_coldplugged \
50 mark_service_starting mark_service_inactive mark_service_started \ 50 mark_service_starting mark_service_inactive mark_service_started \
51 mark_service_stopping mark_service_stopped \ 51 mark_service_stopping mark_service_stopped \
52 mark_service_inactive mark_service_wasinactive \ 52 mark_service_inactive mark_service_wasinactive \
53 mark_service_coldplugged \ 53 mark_service_coldplugged \
54 get_options save_options rc-abort \ 54 get_options save_options rc-abort rc-depend \
55 is_runlevel_start is_runlevel_stop service_started_daemon 55 is_runlevel_start is_runlevel_stop service_started_daemon \
56 fstabinfo mountinfo
57BINLINKS = rc-status
58SBINLINKS = env-update rc-update runscript start-stop-daemon
56 59
57# Quick hack to make my life easier on BSD and Linux 60# Quick hack to make my life easier on BSD and Linux
58ifeq ($(OS),) 61ifeq ($(OS),)
59OS=$(shell uname -s) 62OS=$(shell uname -s)
60ifneq ($(OS),Linux) 63ifneq ($(OS),Linux)
127start-stop-daemon: CPPFLAGS += $(CPPFLAGS_SSD) 130start-stop-daemon: CPPFLAGS += $(CPPFLAGS_SSD)
128start-stop-daemon: LDLIBS += $(LDLIBS_SSD) 131start-stop-daemon: LDLIBS += $(LDLIBS_SSD)
129start-stop-daemon: $(LIBEINFOSO) $(LIBRCSO) start-stop-daemon.o 132start-stop-daemon: $(LIBEINFOSO) $(LIBRCSO) start-stop-daemon.o
130 133
131links: rc 134links: rc
132 for x in $(RCLINKS) $(RCPRIVLINKS); do ln -sf rc $$x; done 135 for x in $(BINLINKS) $(SBINLINKS) $(RCLINKS) $(RCPRIVLINKS); do ln -sf rc $$x; done
133 136
134install: $(TARGET) 137install: $(TARGET)
135 install -m 0755 -d $(DESTDIR)/$(LIB) 138 install -m 0755 -d $(DESTDIR)/$(LIB)
136 install -m 0755 $(LIB_TARGETS) $(DESTDIR)/$(LIB) 139 install -m 0755 $(LIB_TARGETS) $(DESTDIR)/$(LIB)
137 ln -sf $(LIBEINFOSO) $(DESTDIR)/$(LIB)/libeinfo.so 140 ln -sf $(LIBEINFOSO) $(DESTDIR)/$(LIB)/libeinfo.so
138 ln -sf $(LIBRCSO) $(DESTDIR)/$(LIB)/librc.so 141 ln -sf $(LIBRCSO) $(DESTDIR)/$(LIB)/librc.so
139 install -m 0755 -d $(DESTDIR)/usr/include 142 install -m 0755 -d $(DESTDIR)/usr/include
140 install -m 0644 einfo.h rc.h $(DESTDIR)/usr/include 143 install -m 0644 einfo.h rc.h $(DESTDIR)/usr/include
141 install -m 0755 -d $(DESTDIR)/bin 144 install -m 0755 -d $(DESTDIR)/bin
142 install -m 0755 $(BIN_TARGETS) $(DESTDIR)/bin
143 install -m 0755 -d $(DESTDIR)/sbin 145 install -m 0755 -d $(DESTDIR)/sbin
144 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin 146 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin
145 ln -sf rc-update $(DESTDIR)/sbin/update-rc 147 ln -sf rc-update $(DESTDIR)/sbin/update-rc
146 install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/conf.d 148 install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/conf.d
147 install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(LIB)/rcscripts/conf.d 149 install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(LIB)/rcscripts/conf.d
148 install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/bin 150 install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/bin
149 install -m 0755 $(PRIV_BIN_TARGETS) $(DESTDIR)/$(LIB)/rcscripts/bin 151 for x in $(BINLINKS); do ln -sf $(DESTDIR)/sbin/rc $(DESTDIR)/bin/$$x; done
152 for x in $(SBINLINKS); do ln -sf $(DESTDIR)/sbin/rc $(DESTDIR)/sbin/$$x; done
150 for x in $(RCLINKS); do ln -sf $(DESTDIR)/sbin/rc $(DESTDIR)/$(LIB)/rcscripts/bin/$$x; done 153 for x in $(RCLINKS); do ln -sf $(DESTDIR)/sbin/rc $(DESTDIR)/$(LIB)/rcscripts/bin/$$x; done
151 if test "$(HAVE_PAM)" != "" ; then \ 154 if test "$(HAVE_PAM)" != "" ; then \
152 install -m 0755 -d $(DESTDIR)/etc/pam.d ; \ 155 install -m 0755 -d $(DESTDIR)/etc/pam.d ; \
153 install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \ 156 install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \
154 fi 157 fi
155 158
156clean: 159clean:
157 rm -f $(TARGET) $(RCLINKS) $(RCPRIVLINKS) 160 rm -f $(TARGET) $(BINLINKS) $(SBINLINKS) $(RCLINKS) $(RCPRIVLINKS)
158 rm -f *.o *~ *.core *.so .depend 161 rm -f *.o *~ *.core *.so .depend
159 162
160-include .depend 163-include .depend
161.depend: $(wildcard *.c *.h) 164.depend: $(wildcard *.c *.h)
162 $(CC) $(CPPFLAGS) -MM *.c > .depend 165 $(CC) $(CPPFLAGS) -MM *.c > .depend

Legend:
Removed from v.2768  
changed lines
  Added in v.2799

  ViewVC Help
Powered by ViewVC 1.1.20