-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (32 loc) · 812 Bytes
/
makefile
File metadata and controls
44 lines (32 loc) · 812 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
COMPILER= gcc
RM= rm -rf
CFLAGS= -Isrc/includes/ \
-Wall \
-Wextra \
-Wundef \
-Werror-implicit-function-declaration \
-Wshadow \
-Wpointer-arith \
-Wcast-align \
-Wstrict-prototypes \
-Wunreachable-code \
-Wconversion \
-ftrapv
CFLAGS+= `pkg-config --cflags gtk+-3.0` -lpthread
GTK_LDFLAGS=`pkg-config --libs gtk+-3.0`
SRCS= src/main.c \
src/app.c \
src/views.c \
src/sniffer.c \
src/record.c \
src/dialog.c
OBJS= $(SRCS:.c=.o)
NAME= network-analysis
all: $(OBJS)
$(COMPILER) $(CFLAGS) $(OBJS) -o $(NAME) $(GTK_LDFLAGS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all re clean fclean