-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
40 lines (40 loc) · 1.8 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
35
36
37
38
39
40
all: main.c firstpass.c secondpass.c myAtoi.c getLocation.c
gcc main.c firstpass.c secondpass.c myAtoi.c shlToSML.c postfix_SML.c infixToPostfix.c getTokens.c fillSymbolTable.c getLocation.c check.c addExpression.c getFlag.c solveReferences.c saveSMLfile.c addbranchloc.c compressSML.c initialize.c getFileExtension.c -o compiler.o
getFileExtension: getFileExtension.c
gcc -c getFileExtension.c
firstpass: firstpass.c myAtoi.c getLocation.c shlToSML.c postfix_SML.c infixToPostfix.c getTokens.c fillSymbolTable.c check.c addExpression.c initialize.c
gcc -c firstpass.c myAtoi.c getLocation.c shlToSML.c postfix_SML.c infixToPostfix.c getTokens.c fillSymbolTable.c check.c addExpression.c initialize.c
initialize: initialize.c
gcc -c initialize.c
addExpression: addExpression.c
gcc -c addExpression.c
check: check.c
gcc -c check.c
getTokens: getTokens.c myAtoi.c
gcc -c getTokens.c myAtoi.c
fillSymbolTable: fillSymbolTable.c myAtoi.c shlToSML.c addExpression.c
gcc -c fillSymbolTable.c myAtoi.c shlToSML.c addExpression.c
infixToPostfix: infixToPostfix.c
gcc -c infixToPostfix.c
postfix_SML: postfix_SML.c
gcc -c postfix_SML.c
shlToSML: shlToSML.c myAtoi.c getLocation.c
gcc -c shlToSML.c myAtoi.c getLocation.c
secondpass: secondpass.c myAtoi.c getLocation.c getFlag.c solveReferences.c saveSMLfile.c addbranchloc.c compressSML.c
gcc -c secondpass.c myAtoi.c getLocation.c getFlag.c solveReferences.c saveSMLfile.c addbranchloc.c compressSML.c
compressSML: compressSML.c
gcc -c compressSML.c
addbranchloc: addbranchloc.c
gcc -c addbranchloc.c
saveSMLfile: saveSMLfile.c
gcc -c saveSMLfile.c
solveReferences: solveReferences.c getFlag.c addbranchloc.c
gcc solveReferences.c getFlag.c addbranchloc.c
myAtoi: myAtoi.c
gcc -c myAtoi.c
getLocation:getLocation.c
gcc -c getLocation.c
clear_obj: *.o
rm *.o
clear_SML: *.sml
rm *.sml