Shlib.make 462 B

12345678910111213141516
  1. # common dependencies and rules for building shared libraries
  2. SHLIB = $(ARCH_LIBDIR)/$(SHLIB_PREFIX)$(SHLIB_NAME)$(SHLIB_SUFFIX)
  3. CFLAGS += $(SHLIB_CFLAGS)
  4. CXXFLAGS += $(SHLIB_CFLAGS)
  5. LDFLAGS += $(SHLIB_LDFLAGS)
  6. $(SHLIB): $(SHLIB_OBJS)
  7. $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) $(MATHLIB)
  8. ifndef MINGW
  9. (cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_LIB_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
  10. endif
  11. shlib: $(SHLIB)