create the shell loop

This commit is contained in:
2021-06-19 19:13:53 -04:00
parent 16bdb27904
commit cc74038008
4 changed files with 30 additions and 8 deletions

View File

@@ -1,13 +1,14 @@
CC=clang
CFLAGS=-Wall -Isrc/include -DDEBUG -g
LDFLAGS=-lm
SRC=src/myshellin.c
CFLAGS=-Wall -Isrc/include -DDEBUG -g -std=c17
LDFLAGS=
FILENAME=myshellin
SRC=src/myshellin.c src/loop.c
OBJ=$(SRC:.c=.o)
all: myshellin informe
all: myshellin
myshellin: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
$(CC) $(CFLAGS) -o $(FILENAME) $^ $(LDFLAGS)
informe:
# if pdflatex is installed create the informe
@@ -16,7 +17,7 @@ ifneq (, $(shell which pdflatex))
mv doc/Informe.pdf Informe.pdf
endif
clean: cleanmyshellin cleaninforme
clean: cleanmyshellin
cleanmyshellin:
rm -f src/*.o myshellin