blob: 762fbccee90081cc7d4cd26b970ee07952922608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
CC=/home/student/crosstools/arm-2010.09/bin/arm-none-linux-gnueabi-gcc
all: install
# link .o's together with correct soname and real name
libmy-utils.so.1.1 : test1.o test2.o test3.o
$(CC) -o libmy-utils.so.1.1 test1.o test2.o test3.o -shared -Wl,-soname=libmy-utils.so.1
test1.o : test1.c # compile test1 w/ correct flags and output test1.o
$(CC) -o test1.o -fPIC -c test1.c
test2.o : test2.c # compile test2 w/ correct flags and output test2.o
$(CC) -o test2.o -fPIC -c test2.c
test3.o : test3.c # compile test3 w/ correct flags and output test3.o
$(CC) -o test3.o -fPIC -c test3.c
clean:
rm -f *.o *.so.*
install: libmy-utils.so.1.1
cp $< /home/student/targetfs/usr/local/lib
|