-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 895 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SRC = ./src
OBJ = ./obj
STRUCTS = $(SRC)/structs
BASE = $(SRC)/base
CC = gcc
CFLAGS = -g -Wall -I. -I$(STRUCTS) -I$(BASE)
target: vaccineMonitor
OBJS = vaccineMonitor.o
OBJS += bloom.o hash.o list.o skip_list.o
OBJS += items.o monitor.o
bloom.o: $(STRUCTS)/bloom.c
$(CC) $(CFLAGS) -c $(STRUCTS)/bloom.c
skip_list.o: $(STRUCTS)/skip_list.c
$(CC) $(CFLAGS) -c $(STRUCTS)/skip_list.c
items.o: $(BASE)/items.c
$(CC) $(CFLAGS) -c $(BASE)/items.c
list.o: $(STRUCTS)/list.c
$(CC) $(CFLAGS) -c $(STRUCTS)/list.c
hash.o: $(STRUCTS)/hash.c
$(CC) $(CFLAGS) -c $(STRUCTS)/hash.c
monitor.o: $(BASE)/monitor.c
$(CC) $(CFLAGS) -c $(BASE)/monitor.c
vaccineMonitor.o: $(SRC)/vaccineMonitor.c
$(CC) $(CFLAGS) -c $(SRC)/vaccineMonitor.c
vaccineMonitor: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o vaccineMonitor
mkdir -p $(OBJ)
mv $(OBJS) $(OBJ)
.PHONY: clean
clean:
rm -f vaccineMonitor
rm -rf $(OBJ)