forked from Honza0297/IMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (21 loc) · 651 Bytes
/
Makefile
File metadata and controls
33 lines (21 loc) · 651 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
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
exp2: all
./simulator exp2a.txt >exp2a.out
clean:
rm -f *.o *.h.gch simulator