source: grass/branches/develbranch_6/include/Make/Shlib.make

Last change on this file was 46163, checked in by martinl, 13 years ago

re-enable unversioned libs as symlinks
fix rli lib name

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id
  • Property svn:mime-type set to text/plain
File size: 695 bytes
Line 
1# common dependencies and rules for building shared libraries
2
3SHLIB = $(ARCH_LIBDIR)/$(SHLIB_PREFIX)$(SHLIB_NAME)$(SHLIB_SUFFIX)
4
5# Object that calls _setfmode(_O_BINARY) which must be linked to each DLL on Windows
6ifdef MINGW
7ifneq ($(SHLIB_NAME),$(DATETIME_LIBNAME))
8ifneq ($(SHLIB_NAME),$(GIS_LIBNAME))
9 DLLMAIN_OBJ = $(MODULE_TOPDIR)/lib/gis/$(OBJDIR)/dllmain.o
10endif
11endif
12endif
13
14CFLAGS += $(SHLIB_CFLAGS) $(NLS_CFLAGS)
15LDFLAGS += $(SHLIB_LDFLAGS)
16
17$(SHLIB): $(SHLIB_OBJS)
18 $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) $(DLLMAIN_OBJ)
19ifndef MINGW
20 (cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
21endif
22
23shlib: $(SHLIB)
Note: See TracBrowser for help on using the repository browser.