-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (59 loc) · 1.44 KB
/
Makefile
File metadata and controls
75 lines (59 loc) · 1.44 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
##
## \file myfind.c
## Betriebssysteme myfind Makefile
## Beispiel 1
##
## \author Leandros Athanasiadis <leandros.athanasiadis@technikum-wien.at>
## \author Klemens Henk <klemens.henk@technikum-wien.at>
## \author Davor Dadic <davor.dadic@technikum-wien.at>
## \date 2014/03/08
##
## \version 1.0
##
##
##
## ------------------------------------------------------------- variables --
##
CC=gcc
CFLAGS=-DDEBUG -Wall -pedantic -Werror -Wextra -Wstrict-prototypes -fno-common -g -O3
CP=cp
CD=cd
MV=mv
GREP=grep
DOXYGEN=doxygen
OBJECTS=myfind.o
EXCLUDE_PATTERN=footrulewidth
##
## ----------------------------------------------------------------- rules --
##
%.o: %.c
$(CC) $(CFLAGS) -c $<
##
## --------------------------------------------------------------- targets --
##
all: myfind
myfind: $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^
clean:
$(RM) $(OBJECTS) *~ myfind
distclean: clean
$(RM) -r doc
doc: html pdf
html:
$(DOXYGEN) doxygen.dcf
pdf: html
$(CD) doc/pdf && \
$(MV) refman.tex refman_save.tex && \
$(GREP) -v $(EXCLUDE_PATTERN) refman_save.tex > refman.tex && \
$(RM) refman_save.tex && \
make && \
$(MV) refman.pdf refman.save && \
$(RM) *.pdf *.html *.tex *.aux *.sty *.log *.eps *.out *.ind *.idx \
*.ilg *.toc *.tps Makefile && \
$(MV) refman.save refman.pdf
##
## ---------------------------------------------------------- dependencies --
##
##
## =================================================================== eof ==
##