help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


From: Goran Štrok
Subject: (no subject)
Date: Thu, 11 Aug 2005 14:06:48 +0200

Basically I want that during linking some errors or warning should be
given for the multiple definition function in the shared library.

Thank for help!
Here is my makefile:



CC=gcc
COPTS=-g -O2
LD=ld
CC=gcc
COPTS=-g -O2
LD=ld
LOPTS=-L.

all: lib1 lib2 lib3 apl
        objdump -S liblib1.so liblib2.so liblib3.so | grep f4

lib1: Makefile \
        lib1.c
        ${CC} $(COPTS) -fPIC -shared lib1.c -o liblib1.so

lib2: Makefile \
        lib2.c
        $(CC) $(COPTS) -fPIC -shared lib2.c -o liblib2.so

lib3: Makefile \
        lib3.c
        $(CC) $(COPTS) -fPIC -shared lib3.c -o liblib3.so

apl: Makefile \
        apl.c
        $(CC) $(COPTS) $(LOPTS) apl.c -o apl -llib1 -llib2 -llib3

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]