-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
39 lines (28 loc) · 962 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
SOURCE = main.c util.c HashTable.c List.c InvIndex.c Database.c IDList.c YList.c ZList.c
OBJS = main.o util.o HashTable.o List.o InvIndex.o Database.o IDList.o YList.o ZList.o
HEADER = Functions.h Types.h
OUT = mngstd
CC = gcc
CFLAGS = -g -Wall -Werror
make: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(OUT)
main.o: main.c Functions.h Types.h
$(CC) -c $(CFLAGS) main.c
util.o: util.c Functions.h Types.h
$(CC) -c $(CFLAGS) util.c
HashTable.o: HashTable.c Functions.h Types.h
$(CC) -c $(CFLAGS) HashTable.c
List.o: List.c Functions.h Types.h
$(CC) -c $(CFLAGS) List.c
InvIndex.o: InvIndex.c Functions.h Types.h
$(CC) -c $(CFLAGS) InvIndex.c
Database.o: Database.c Functions.h Types.h
$(CC) -c $(CFLAGS) Database.c
IDList.o: IDList.c Functions.h Types.h
$(CC) -c $(CFLAGS) IDList.c
YList.o: YList.c Functions.h Types.h
$(CC) -c $(CFLAGS) YList.c
ZList.o: ZList.c Functions.h Types.h
$(CC) -c $(CFLAGS) ZList.c
clean:
rm -f $(OBJS) $(OUT)