Changeset 88 for SH_SHM/trunk


Ignore:
Timestamp:
12/10/2008 04:58:06 PM (14 years ago)
Author:
marcus
Message:

r70 | walther | 2008-12-10 17:14:05 +0100 (Mi, 10 Dez 2008) | 2 lines

  • update of Makefile in order to build shared library
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/Makefile

    r30 r88  
    88# K. Stammler, 11-Feb-93 
    99 
    10 CFLAGS      = $(SH_CCOPTIONS) -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\" 
     10CFLAGS      = $(SH_CCOPTIONS) -fPIC -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\" 
    1111CC          = $(SH_COMPILER) 
    1212LD          = $(SH_COMPILER) 
     
    2020PROGNAME    = ../shc 
    2121SHDAEMON    = ../shd 
     22SHRDLIB     = ../libshc.so 
    2223 
    2324LIB_LOCAL       = $(SH_LIB)libsource.a 
     
    6970        @echo "Linking $(PROGNAME) ..." 
    7071        $(LD) seismhan.o $(LDFLAGS) $(LIBS) -o $(PROGNAME) 
     72        $(LD) -shared -o $(SHRDLIB) -lc seismhan.o -L/usr/share/SH/sh/lib/ -L/usr/X11R6/lib -lgraph -lsource -lgcf -lseed -lfrgn -lsource -lm -lX11 
    7173 
    7274#$(SHDAEMON):   shd.o $(MAKEFILE) $(SHD_OBJS) 
     
    7678 
    7779clean: 
    78         -@rm *% $(LOCAL_OBJS) seismhan.o $(ALL_SH_LIBS) $(PROGNAME) $(PROGNAME)_world 
     80        -@rm *% $(LOCAL_OBJS) seismhan.o $(ALL_SH_LIBS) $(PROGNAME) $(PROGNAME)_world $(SHRDLIB) 
    7981        -@cd seed_io; make clean 
    8082        -@cd foreign; make clean 
Note: See TracChangeset for help on using the changeset viewer.