Ignore:
Timestamp:
Jan 10, 2011, 12:26:50 AM (15 years ago)
Author:
dmik
Message:

jdk: Enabled building demos and samples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/common/Demo.gmk

    r2 r232  
    2828# Some names are defined with LIBRARY inside the Defs.gmk file
    2929LIBRARY=$(DEMONAME)
     30LIBRARY_SHORT=$(DEMONAME_SHORT)
    3031OBJDIR=$(TEMPDIR)/$(DEMONAME)
    3132
     
    123124ifneq ($(strip $(DEMO_ALL_NATIVE_SOURCES)),)
    124125  # Path to native library we will create
    125   DEMO_LIBRARY = \
    126       $(DEMO_DESTDIR)/lib$(ISA_DIR)/$(LIB_PREFIX)$(DEMONAME).$(LIBRARY_SUFFIX)
     126  ifneq ($(DEMONAME_SHORT),)
     127    DEMO_LIBRARY = \
     128        $(DEMO_DESTDIR)/lib$(ISA_DIR)/$(LIB_PREFIX)$(DEMONAME_SHORT).$(LIBRARY_SUFFIX)
     129  else
     130    DEMO_LIBRARY = \
     131        $(DEMO_DESTDIR)/lib$(ISA_DIR)/$(LIB_PREFIX)$(DEMONAME).$(LIBRARY_SUFFIX)
     132  endif
    127133  # C and C++ compiler flags we need to add to standard flags
    128134  DEMO_CPPFLAGS     += -I$(DEMO_BUILD_SRCDIR)
Note: See TracChangeset for help on using the changeset viewer.