Move init to its own directory.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-10-04 17:34:51 +02:00
parent 2abd0cf754
commit 77cf804ed2
6 changed files with 37 additions and 4 deletions

View File

@ -14,6 +14,7 @@ carray \
editor \ editor \
ext \ ext \
games \ games \
init \
mbr \ mbr \
mkinitrd \ mkinitrd \
regress \ regress \

2
init/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
init
*.o

32
init/Makefile Normal file
View File

@ -0,0 +1,32 @@
include ../build-aux/platform.mak
include ../build-aux/compiler.mak
include ../build-aux/version.mak
include ../build-aux/dirs.mak
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
CXXFLAGS?=$(OPTLEVEL)
CPPFLAGS:=$(CPPFLAGS) -DVERSIONSTR=\"$(VERSION)\"
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
BINARY=init
OBJS=\
init.o \
all: $(BINARY)
.PHONY: all install clean
$(BINARY): $(OBJS)
$(CXX) $(OBJS) -o $(BINARY) $(CXXFLAGS) $(LIBS)
%.o: %.c++
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARY) $(DESTDIR)$(BINDIR)
clean:
rm -f $(BINARY) $(OBJS) *.o

View File

@ -1,6 +1,6 @@
/******************************************************************************* /*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013. Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014.
This program is free software: you can redistribute it and/or modify it This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free under the terms of the GNU General Public License as published by the Free
@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License along with You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>. this program. If not, see <http://www.gnu.org/licenses/>.
init.cpp init.c++
Initializes the system by setting up the terminal and starting the shell. Initializes the system by setting up the terminal and starting the shell.
*******************************************************************************/ *******************************************************************************/

1
utils/.gitignore vendored
View File

@ -19,7 +19,6 @@ false
find find
head head
help help
init
kernelinfo kernelinfo
kill kill
ln ln

View File

@ -31,7 +31,6 @@ false \
find \ find \
head \ head \
help \ help \
init \
kernelinfo \ kernelinfo \
kill \ kill \
ln \ ln \