-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (62 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
80 lines (62 loc) · 1.63 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
76
77
78
79
80
##
## @file Makefile
## Betriebssysteme Myfind Makefile - Group 11
## Beispiel 1
## Based on Hello-Makefile
##
## @date 2020/02/20
##
##
## ------------------------------------------------------------- variables --
##
CC=gcc
CFLAGS=-DDEBUG -Wall -pedantic -Werror -Wextra -Wstrict-prototypes -Wformat=2 -fno-common -ftrapv -g -O3 -std=gnu11
CFLAGS-DEBUG=-DDEBUG -Wall -pedantic -Werror -Wextra -Wstrict-prototypes -Wformat=2 -fno-common -ftrapv -g -std=gnu11
CP=cp
CD=cd
MV=mv
GREP=grep
DOXYGEN=doxygen
OBJECTS=main.o action.o action_name.o action_nouser.o action_path.o action_type.o action_user.o
EXCLUDE_PATTERN=footrulewidth
##
## ----------------------------------------------------------------- rules --
##
%.o: %.c
$(CC) $(CFLAGS) -c $<
##
## --------------------------------------------------------------- targets --
##
.PHONY: all
all: myfind-grp11
myfind-grp11: $(OBJECTS)
$(CC) $(CFLAGS) -o "$@" $^
debug: $(OBJECTS)
$(CC) $(CFLAGS-DEBUG) -o "$@" "$^"
.PRECIOUS: %.tex
.PHONY: clean
clean:
$(RM) *.o *~ myfind-grp11
.PHONY: distclean
distclean: clean
$(RM) -r doc
doc: html ## pdf
.PHONY: html
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 ==
##