-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 894 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 894 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
CC = gcc
CFLAGS =-std=c11 -Wall
all: simulator
simulator: main.o otherlib.o modelib.o loglib.o
$(CC) $(CFLAGS) -o simulator main.o otherlib.o modelib.o loglib.o
main.o: main.c
$(CC) $(CFLAGS) -c main.c
otherlib.o: otherlib.c otherlib.h modelib.h
$(CC) $(CFLAGS) -c otherlib.c otherlib.h modelib.h
modelib.o: modelib.c modelib.h otherlib.h loglib.h
$(CC) $(CFLAGS) -c modelib.c otherlib.h modelib.h loglib.h
loglib.o: loglib.c loglib.h
$(CC) $(CFLAGS) -c loglib.c loglib.h
run: all
./simulator imsConf.txt
exp1: all
./simulator exp1a.txt >exp1a.out
./simulator exp1b.txt >exp1b.out
./simulator exp1c.txt >exp1c.out
./simulator exp1d.txt >exp1d.out
./simulator exp1e.txt >exp1e.out
exp2: all
./simulator exp2a.txt >exp2a.out
./simulator exp2b.txt >exp2b.out
./simulator exp2c.txt >exp2c.out
./simulator exp2d.txt >exp2d.out
clean:
rm -f *.o *.h.gch simulator