-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 876 Bytes
/
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
CC=gcc
CFLAGS=-std=c11 -Wall -Wextra -Wextra -Wno-unused-parameter -Wno-unused-variable -Werror
LDFLAGS=-lm
LDLIBS =`pkg-config gtk+-3.0 --cflags --libs`
NAME = mill
$(NAME): main.o mill.o lin-fifo.o data_sending.o gui.o
$(CC) $(CFLAGS) -g main.o mill.o lin-fifo.o data_sending.o gui.o $(LDLIBS) -o $(NAME) $(LDFLAGS)
main.o: main.c mill.h fifo.h data_sending.h
$(CC) $(CFLAGS) -c main.c $(LDLIBS) -o main.o
mill.o: mill.c mill.h data_sending.h
$(CC) $(CFLAGS) -c mill.c $(LDLIBS) -o mill.o
lin-fifo.o: lin-fifo.c fifo.h
$(CC) $(CFLAGS) -c lin-fifo.c -o lin-fifo.o
data_sending.o: data_sending.c data_sending.h mill.h fifo.h gui.h
$(CC) $(CFLAGS) -c data_sending.c $(LDLIBS) -o data_sending.o
gui.o: gui.c gui.h mill.h fifo.h data_sending.h
$(CC) $(CFLAGS) -c gui.c $(LDLIBS) -o gui.o
clean:
rm -f main.o mill.o lin-fifo.o data_sending.o gui.o mill AtoB BtoA