-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (25 loc) · 969 Bytes
/
makefile
File metadata and controls
37 lines (25 loc) · 969 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
CC=gcc
CFLAGS=-std=c99 -pedantic -Wall -c -Iinclude
all: bin/main bin/testMain
bin/HashTableAPI.o: src/HashTableAPI.c
$(CC) $(CFLAGS) src/HashTableAPI.c -o bin/HashTableAPI.o
bin/userDefined.o: src/userDefined.c
$(CC) $(CFLAGS) src/userDefined.c -o bin/userDefined.o
bin/commandLine.o: src/commandLine.c
$(CC) $(CFLAGS) src/commandLine.c -o bin/commandLine.o
bin/main.o: src/main.c
$(CC) $(CFLAGS) src/main.c -o bin/main.o
bin/main: bin/main.o bin/HashTableAPI.o bin/userDefined.o bin/commandLine.o
$(CC) bin/main.o bin/HashTableAPI.o bin/userDefined.o bin/commandLine.o -o bin/runMe
bin/testMain.o: src/testMain.c
$(CC) $(CFLAGS) src/testMain.c -o bin/testMain.o
bin/testMain: bin/testMain.o bin/userDefined.o bin/HashTableAPI.o bin/commandLine.o
$(CC) bin/testMain.o bin/userDefined.o bin/HashTableAPI.o bin/commandLine.o -o bin/runTest
run:
./bin/runMe dictionary.txt
runTest:
./bin/runTest
clean:
rm bin/*.o
rm bin/runMe
rm bin/runTest