initial import
[staff/goc4/2018bti7061.git] / c-3-libraries / examples / c-variables / makefile
1 all: automatic1 automatic2 static1 global1 global2
2
3 clean:
4 rm *.o *~
5
6 automatic1: automatic1.c
7 gcc automatic1.c -g -F dwarf -lm -o automatic1
8
9 automatic2: automatic2.c
10 gcc automatic2.c -g -F dwarf -o automatic2
11
12
13 static1: static1.c
14 gcc static1.c -g -F dwarf -o static1
15
16 global1: global1.c
17 gcc global1.c -g -F dwarf -o global1
18
19 global2.o: global2.c
20 gcc global2.c -g -F dwarf -c
21
22 external.o: external.c
23 gcc external.c -g -F dwarf -c
24
25 global2: global2.o external.o
26 gcc global2.o external.o -o global2