Move init to its own directory.
This commit is contained in:
parent
2abd0cf754
commit
77cf804ed2
1
Makefile
1
Makefile
|
@ -14,6 +14,7 @@ carray \
|
||||||
editor \
|
editor \
|
||||||
ext \
|
ext \
|
||||||
games \
|
games \
|
||||||
|
init \
|
||||||
mbr \
|
mbr \
|
||||||
mkinitrd \
|
mkinitrd \
|
||||||
regress \
|
regress \
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
init
|
||||||
|
*.o
|
|
@ -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
|
|
@ -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.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -19,7 +19,6 @@ false
|
||||||
find
|
find
|
||||||
head
|
head
|
||||||
help
|
help
|
||||||
init
|
|
||||||
kernelinfo
|
kernelinfo
|
||||||
kill
|
kill
|
||||||
ln
|
ln
|
||||||
|
|
|
@ -31,7 +31,6 @@ false \
|
||||||
find \
|
find \
|
||||||
head \
|
head \
|
||||||
help \
|
help \
|
||||||
init \
|
|
||||||
kernelinfo \
|
kernelinfo \
|
||||||
kill \
|
kill \
|
||||||
ln \
|
ln \
|
||||||
|
|
Loading…
Reference in New Issue