-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.09 KB
/
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
#/*
# *********************************************
# * 314 Principles of Programming Languages *
# * Spring 2014 *
# * Authors: Ulrich Kremer *
# * Hans Christian Woithe *
# *********************************************
# */
CCFLAGS = -ggdb -Wall
all: compile optimize run
compile: Compiler.c InstrUtils.c InstrUtils.h Utils.c Utils.h
gcc $(CCFLAGS) Compiler.c InstrUtils.c Utils.c -o compile
optimize: Optimizer.c InstrUtils.c InstrUtils.h Utils.c
gcc $(CCFLAGS) Optimizer.c InstrUtils.c Utils.c Utils.h -o optimize
run: Interpreter.c InstrUtils.c InstrUtils.h Utils.c Utils.h
gcc $(CCFLAGS) Interpreter.c InstrUtils.c Utils.c Utils.h -o run
# this will reformat your code according to the linux guidelines.
# be careful when using this command!
pretty: Compiler.c InstrUtils.c InstrUtils.h Utils.c Utils.h
indent -linux Compiler.c
indent -linux Instr.h
indent -linux InstrUtils.c InstrUtils.h
indent -linux Utils.c Utils.h
indent -linux Interpreter.c
indent -linux Optimizer.c
clean:
rm -rf compile optimize run tinyL.out