Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20121019155135

Diff

Diff from 1.3 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/misc/shlib/Makefile

Annotated File View

faceless
1.1
1 CC=pcc
2 MAKE=make
3
4 test:
5         @${MAKE} clean 
6         @${MAKE} combined_check 
7         @${MAKE} static_check 
8         @${MAKE} shared_check  
9
10 combined:
faceless
1.2
11         @${CC} -o combined main.c lib.c >/dev/null 2>/dev/null
faceless
1.1
12
13 combined_check: 
14         @${MAKE} combined
faceless
1.2
15         @./combined >/dev/null 2>/dev/null
faceless
1.1
16
17 static_lib:
18         @$(CC) -c lib.c
faceless
1.2
19         @ar r lib.a lib.o >/dev/null 2>/dev/null 
faceless
1.1
20
21 static: 
22         @${MAKE} static_lib
plunky
1.3
23         @${CC} -Wall -o static main.c lib.a >/dev/null 2>/dev/null
faceless
1.1
24
25 static_check: 
26         @${MAKE} static
27         @./static >/dev/null
28
29 shared_lib:
30         @$(CC) -fPIC -c lib.c
31 #       $(CC) -dynamiclib -o liblib.dylib lib.o
32         @$(CC) -shared -o liblib.so lib.o
33
34 shared: 
35         @${MAKE} shared_lib
36 #       $(CC) -Wall -o shared main.c -L. -llib
37         @$(CC)  -Wl,-rpath=. -o shared main.c -L. -llib
38
39 shared_check: 
40         @${MAKE} shared 
41         @./shared >/dev/null
42
43 clean:
44         @rm -f lib.a liblib.dylib lib.o liblib.so combined static shared
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 15:27 +0100