-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
39 lines (29 loc) · 1.13 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# ****************************************************
# * *
# * SSC 0605 - Teoria da Computação e Compiladores *
# * *
# * Autores: *
# * - Che Fan Pan - 11200421 *
# * - Eduardo Cavalari Valença - 11234381 *
# * - Marcos Vinicius Firmino Pietrucci - 10770072 *
# * - Murilo Mussatto - 11234245 *
# * *
# * São Carlos - SP *
# * 2022 *
# * *
# ****************************************************
CC=gcc # C compiler
CFLAGS=-I. -g -Wall
DEPS= *.h Headers/*.h
OBJ = *.c Source/*.c
FILE = test.txt
all: $(OBJ)
@$(CC) -o prog $^ $(CFLAGS) $(LIBS)
o: %.c $(DEPS)
@$(CC) -c -o $@ $< $(CFLAGS)
run:
@read -p "Insira o nome do arquivo (com extensao): " NOME; \
./prog $${NOME};
clean:
@rm -f *.o Output/*