--- sysvinit/src/Makefile +++ sysvinit/src/Makefile @@ -10,5 +10,3 @@ -CC = gcc -CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -LDFLAGS = -s +CFLAGS += -Wall -D_GNU_SOURCE STATIC = @@ -48,9 +48,7 @@ MANDIR = /usr/share/man # Additional libs for GNU libc. -ifneq ($(wildcard /usr/lib/libcrypt.a),) LCRYPT = -lcrypt -endif all: $(BIN) $(SBIN) $(USRBIN) @@ -112,2 +117,5 @@ install: + $(INSTALL) -d $(ROOT)/bin $(ROOT)/sbin $(ROOT)/usr/bin \ + $(ROOT)/usr/include $(ROOT)/$(MANDIR)/man1 $(ROOT)/$(MANDIR)/man5 \ + $(ROOT)/$(MANDIR)/man8 for i in $(BIN); do \