help-make
[Top][All Lists]
Advanced

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

RE: Dynamic libraries


From: PATTON, BILLY \(SBCSI\)
Subject: RE: Dynamic libraries
Date: Thu, 30 Mar 2006 14:11:44 -0600

Create .so instead of .a.  If your are using gcc I believe the linker option is -Bdynamic
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Montenegro, Alejandro
Sent: Thursday, March 30, 2006 2:06 PM
To: address@hidden
Subject: Dynamic libraries

HI,
I was wondering if it is possible to generate dynamic libraries using GNU.
I have a program that uses different functions from FORTRAN and from C ( see the content of makefile below), and I would like not to have to recompile and build  it every time I change one of the files ( in this particular case the file called SPIRITI.o).

Is there any way I can create an executable and still be able to access "modified" functions without having to rebuild the entire project?

Thanks

Almonleo

************************************* makefile *********************************************
CC=gcc
FOR="">
OBJECTS =dimdef.o \
        newmods.o \
        comtac.o \
        fgnmod.o \
        usernl.o \
        analyt.o \
        devt69.o \
        usrfun.o \
        hopcod.o \
        user10.o \
        SPIRIT.o \
CFLAGS =  -DUNDERSCORE -O2
FFLAGS = -O2
IMAGE=tpbig.exe
LIBRARY = tpbig.a dislin.a -luser32 -lgdi32 -lcomdlg32
.f.o:
        $(FOR) -c $(FFLAGS) $<
.c.o:
        $(CC) -c $(CFLAGS) $(INCFLAGS) $<
$(IMAGE) : $(OBJECTS)
        $(FOR) -s -o $(IMAGE) $(OBJECTS) $(LIBRARY)
********************************************************************************************************


reply via email to

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