-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 1.38 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
CFLAGS=-Wall -ansi -pedantic -O2
all:
make clean
make clients
make products
make accounting
make salesc
make salesp
make gesthiper
gesthiper: src/gesthiper.c clients.o products.o accounting.o salesc.o salesp.o
gcc src/gesthiper.c clients.o products.o accounting.o salesc.o salesp.o $(CFLAGS) -o gesthiper -lm
clients: src/clients.c src/clients.h
gcc src/clients.c -c $(CFLAGS)
clientstest: tests/clientstest.c clients.o src/clients.h
gcc tests/clientstest.c clients.o $(CFLAGS) -o tests/clientstest
products: src/products.c src/products.h
gcc src/products.c -c $(CFLAGS)
productstest: tests/productstest.c products.o src/products.h
gcc tests/productstest.c products.o $(CFLAGS) -o tests/productstest
accounting: src/accounting.c src/accounting.h
gcc src/accounting.c -c $(CFLAGS)
accountingtest: tests/accountingtest.c accounting.o src/accounting.h clients.o products.o
gcc -g tests/accountingtest.c accounting.o products.o clients.o $(CFLAGS) -o tests/accountingtest
salesc: src/salesc.c src/salesc.h
gcc src/salesc.c -c $(CFLAGS)
salesctest: tests/salesctest.c salesc.o clients.o products.o src/salesc.h src/clients.h src/products.h
gcc tests/salesctest.c salesc.o clients.o products.o -o tests/salesctest $(CFLAGS)
salesp: src/salesp.c src/salesp.h
gcc src/salesp.c -c $(CFLAGS)
report: report/report.tex
pdflatex report/report.tex
clean:
-rm -f *.o tests/*test gesthiper results/*