diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..788e736 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +Informe.pdf +*.o +myshellin +*.log +*.toc +*.gz +*.aux +*.out diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..111776e --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +CC=clang +CFLAGS=-Wall -Isrc/include -DDEBUG -g +LDFLAGS=-lm +SRC=src/myshellin.c +OBJ=$(SRC:.c=.o) + +all: myshellin informe + +myshellin: $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + +informe: +# if pdflatex is installed create the informe +ifneq (, $(shell which pdflatex)) + make -C doc + mv doc/Informe.pdf Informe.pdf +endif + +clean: cleanmyshellin cleaninforme + +cleanmyshellin: + rm -f src/*.o myshellin + +cleaninforme: + make -C doc clean + rm -f Informe.pdf + +.PHONY: all myshellin informe clean cleanmyshellin cleaninforme diff --git a/doc/Enunciado - ProyectoSemestral.pdf b/doc/Enunciado - ProyectoSemestral.pdf new file mode 100644 index 0000000..ec10c73 Binary files /dev/null and b/doc/Enunciado - ProyectoSemestral.pdf differ diff --git a/doc/Informe.tex b/doc/Informe.tex new file mode 100644 index 0000000..b1b0cc0 --- /dev/null +++ b/doc/Informe.tex @@ -0,0 +1,72 @@ +\title{Proyecto Semestral} +\author{} +\date{\today} + +\documentclass[12pt]{article} + +\usepackage[utf8]{inputenc} %\ This allows spanish tildes +\usepackage[spanish]{babel} +\usepackage{array} +\usepackage{adjustbox} +\usepackage{titling} +\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm,a4paper]{geometry} +\usepackage{amsmath} + +\usepackage{listings} +\lstset{ + basicstyle=\small\ttfamily, + columns=flexible, + breaklines=true, + inputencoding=utf8, + extendedchars=true, + literate={á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 {ñ}{{\~n}}1 {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 {Ñ}{{\~N}}1 +} + +\usepackage{hyperref} +\hypersetup{colorlinks=true,allcolors=black,pdftitle={Proyecto Semestral}} +\usepackage{hypcap} + +\pretitle{% + \begin{center} + \LARGE + \includegraphics[width=4cm]{ubblogo.png}\\[\bigskipamount] + \Large + \textbf{Sistemas Operativos}\\[\smallskipamount] + } + +\posttitle{\end{center}} + +\begin{document} +\hypersetup{pageanchor=false} +\clearpage\maketitle +\thispagestyle{empty} + +\begin{flushright} +\textbf{Integrantes:}\\ +Christopher Cromer\\ +Raúl Hernandez +\end{flushright} + +\begin{flushright} +\textbf{Profesor:}\\ +Carlos Faúndez +\end{flushright} + +\newpage + +\clearpage +\thispagestyle{empty} +\tableofcontents + +\newpage +\hypersetup{pageanchor=true} +\pagenumbering{arabic} + +\newpage +\section{Introducción} + +\newpage +\section{Conclusiones} + +\end{document} + diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..a0a7aae --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,9 @@ +informe: + # we do this twice to make sure the toc is updated + pdflatex -synctex=1 -interaction=nonstopmode "Informe.tex" + pdflatex -synctex=1 -interaction=nonstopmode "Informe.tex" + +clean: + rm -f *.log *.toc *.gz *.aux *.out Informe.pdf + +.PHONY: informe clean diff --git a/doc/ubblogo.png b/doc/ubblogo.png new file mode 100644 index 0000000..76f7dcc Binary files /dev/null and b/doc/ubblogo.png differ diff --git a/src/myshellin.c b/src/myshellin.c new file mode 100644 index 0000000..6edf587 --- /dev/null +++ b/src/myshellin.c @@ -0,0 +1,5 @@ +int main(int argc, char **argv) +{ + + return 0; +}