initial import
[staff/goc4/2018bti7061.git] / c-3-libraries / examples / c-functions / makefile
1 all: function1 helloWorld useLibrary
2
3 clean:
4 rm *.o *~
5
6 function1: function1.c
7 gcc function1.c -g -F dwarf -lm -o function1
8
9 helloWorld: helloWorld.c
10 gcc helloWorld.c -g -F dwarf -lm -o helloWorld
11
12 # Generate the library file myFIrstLibrary.o that must be linked with the
13 # File containing a main
14 myFirstLibrary.o: myFirstLibrary.c myFirstLibrary.h
15 gcc myFirstLibrary.c -g -F dwarf -c
16
17 useLibrary.o: useLibrary.c myFirstLibrary.h
18 gcc useLibrary.c -g -F dwarf -c
19
20 useLibrary: useLibrary.o myFirstLibrary.o
21 gcc useLibrary.o myFirstLibrary.o -o useLibrary