mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Move init to its own directory.
This commit is contained in:
parent
2abd0cf754
commit
77cf804ed2
6 changed files with 37 additions and 4 deletions
1
Makefile
1
Makefile
|
@ -14,6 +14,7 @@ carray \
|
|||
editor \
|
||||
ext \
|
||||
games \
|
||||
init \
|
||||
mbr \
|
||||
mkinitrd \
|
||||
regress \
|
||||
|
|
2
init/.gitignore
vendored
Normal file
2
init/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
init
|
||||
*.o
|
32
init/Makefile
Normal file
32
init/Makefile
Normal 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
|
|
@ -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
|
||||
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
|
||||
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.
|
||||
|
||||
*******************************************************************************/
|
1
utils/.gitignore
vendored
1
utils/.gitignore
vendored
|
@ -19,7 +19,6 @@ false
|
|||
find
|
||||
head
|
||||
help
|
||||
init
|
||||
kernelinfo
|
||||
kill
|
||||
ln
|
||||
|
|
|
@ -31,7 +31,6 @@ false \
|
|||
find \
|
||||
head \
|
||||
help \
|
||||
init \
|
||||
kernelinfo \
|
||||
kill \
|
||||
ln \
|
||||
|
|
Loading…
Reference in a new issue