-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 2.39 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
40
41
42
43
44
45
46
47
48
49
50
51
52
CC=gcc
OBJS := $(patsubst src/%.c, obj/%.o,$(wildcard src/*.c))
OBJS2=$(wildcard src/array_dinamico.c src/avl.c src/catalogo.c src/clientes.c src/faturacao.c src/filial.c src/heap.c src/interpretador.c src/leituras.c src/produtos.c src/queries.c src/venda.c test/*.c)
CFLAGS= -Wno-unused-result -O2 -ansi
compile:$(OBJS)
$(CC) $(CFLAGS) -o gereVendas $(OBJS)
debug: CFLAGS := -g
debug: compile
obj/%.o: src/%.c
@mkdir -p obj
$(CC) $(CFLAGS) -o $@ -c $<
obj/main.o: src/headers/global.h src/headers/produtos.h src/headers/clientes.h src/headers/filial.h src/headers/interpretador.h src/headers/faturacao.h
obj/avl.o: src/headers/avl.h src/headers/global.h
obj/leituras.o: src/headers/leituras.h src/headers/clientes.h src/headers/catalogo.h src/headers/produtos.h src/headers/venda.h src/headers/filial.h src/headers/faturacao.h src/headers/global.h
obj/array_dinamico.o: src/headers/array_dinamico.h src/headers/avl.h src/headers/global.h
obj/catalogo.o: src/headers/catalogo.h src/headers/avl.h src/headers/array_dinamico.h src/headers/global.h
obj/clientes.o: src/headers/clientes.h src/headers/catalogo.h src/headers/global.h
obj/produtos.o: src/headers/produtos.h src/headers/catalogo.h src/headers/global.h
obj/venda.o: src/headers/venda.h src/headers/clientes.h src/headers/produtos.h src/headers/global.h
obj/interpretador.o: src/headers/interpretador.h src/headers/clientes.h src/headers/produtos.h src/headers/faturacao.h src/headers/filial.h src/headers/global.h
obj/heap.o: src/headers/heap.h src/headers/global.h
obj/global.o: src/headers/global.h
obj/faturacao.o: src/headers/faturacao.h src/headers/catalogo.h src/headers/venda.h src/headers/produtos.h src/headers/global.h
obj/filial.o: src/headers/filial.h src/headers/avl.h src/headers/array_dinamico.h src/headers/heap.h src/headers/catalogo.h src/headers/venda.h src/headers/produtos.h src/headers/clientes.h src/headers/global.h
obj/queries.o: src/headers/queries.h src/headers/faturacao.h src/headers/filial.h src/headers/avl.h src/headers/array_dinamico.h src/headers/heap.h src/headers/catalogo.h src/headers/venda.h src/headers/produtos.h src/headers/clientes.h src/headers/global.h
run:$(OBJS)
$(CC) $(CFLAGS) -o gereVendas $(OBJS)
./gereVendas
clean:
-@rm gereVendas
-@rm -rf obj
-@rm testaVendas
cleanAll: clean
-@rm -rf doc
-@rm -rf html
.PHONY: doc
doc:$(OBJS)
doxygen doxygen.conf
testa:$(OBJS2)
$(CC) $(CFLAGS) -o testaVendas $(OBJS2)