-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 723 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 723 Bytes
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
CC = gcc
CFLAGS = -Wall -Wextra -Wshadow -Wunreachable-code -Wredundant-decls \
-Wmissing-declarations -Wold-style-definition \
-Wmissing-prototypes -Wdeclaration-after-statement \
-Wno-return-local-addr -Wunsafe-loop-optimizations \
-Wuninitialized -Werror -Wno-unused-parameter \
-Wno-string-compare -Wno-stringop-overflow \
-Wno-stringop-overread -Wno-stringop-truncation
PROG1 = monitorasaurus
TAR_FILE = Lab4_${LOGNAME}.tar.gz
LDFLAGS = -lpthread
all: $(PROG1)
$(PROG1): $(PROG1).o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(PROG1).o: $(PROG1).c
$(CC) $(CFLAGS) -c $<
clean:
rm -f $(PROG1) *.o *~ \#*
tar: clean
rm -f $(TAR_FILE)
tar cvfa $(TAR_FILE) *.[ch] ?akefile