-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (18 loc) · 916 Bytes
/
Copy pathmakefile
File metadata and controls
26 lines (18 loc) · 916 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
myprog: main.o data_structure.o mcro.o code_table.o first_trans.o second_trans.o symbol_table.o
gcc -g -ansi mcro.o data_structure.o code_table.o first_trans.o second_trans.o main.o symbol_table.o -o myprog -lm
main.o: main.c
gcc -c -Wall -ansi -pedantic main.c -o main.o
data_structure.o: data_structure.c data_structure.h
gcc -c -Wall -ansi -pedantic data_structure.c -o data_structure.o
mcro.o: mcro.c mcro.h
gcc -c -Wall -ansi -pedantic mcro.c -o mcro.o
code_table.o: code_table.c code_table.h
gcc -c -Wall -ansi -pedantic code_table.c -o code_table.o
first_trans.o: first_trans.c first_trans.h
gcc -c -Wall -ansi -pedantic first_trans.c -o first_trans.o
second_trans.o: second_trans.c second_trans.h
gcc -c -Wall -ansi -pedantic second_trans.c -o second_trans.o
symbol_table.o: symbol_table.c symbol_table.h
gcc -c -Wall -ansi -pedantic symbol_table.c -o symbol_table.o
clean:
rm -f myprog *.o