add basic structure

This commit is contained in:
2021-06-19 17:54:33 -04:00
parent 8fdc2fa3db
commit d9e1cd33d6
5 changed files with 114 additions and 0 deletions

28
Makefile Normal file
View File

@@ -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