Files
harbour-core/harbour/config/lib.cf
Viktor Szakats 862c0c5e92 2009-07-15 13:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/rules.cf
  * config/darwin/gcc.cf
  * config/dos/watcom.cf
  * config/dos/djgpp.cf
  * config/global.cf
  * config/lib.cf
  * config/win/watcom.cf
  * config/bin.cf
  * config/linux/watcom.cf
  * config/os2/watcom.cf
  * config/os2/gcc.cf
    + Now all binaries will be created inside bin/<arch>/<comp>,
      instead of the work/obj dir.
    ; Please test. (I didn't test cross-compilation yet, but maybe
      now it's a better time to cleanup the HB_PPGEN_PATH, HB_BIN_COMPILE
      settings and drop the former.
    ! Reverted prev cleanup.
    ; TOFIX: install rule for hbpp lib doesn't work after recent 
             change.
    ; TODO: Delete HB_PPGEN_PATH
2009-07-15 11:37:24 +00:00

42 lines
793 B
CFEngine3

#
# $Id$
#
ifneq ($(HB_ARCHITECTURE),)
ifneq ($(HB_COMPILER),)
# no slash at the end
LIB_ARCH_DIR := $(TOP)$(ROOT)lib/$(HB_ARCHITECTURE)
# no slash at the end
LIB_DIR := $(LIB_ARCH_DIR)/$(HB_COMPILER)
include $(TOP)$(ROOT)config/global.cf
include $(TOP)$(ROOT)config/c.cf
include $(TOP)$(ROOT)config/prg.cf
LIB_NAME := $(LIB_PREF)$(LIBNAME)$(LIB_EXT)
LIB_FILE := $(LIB_DIR)/$(LIB_NAME)
EXE_DIR := $(TOP)$(ROOT)bin/$(ARCH_COMP)
ALL_OBJS = $(ALL_C_OBJS) $(ALL_PRG_OBJS)
first:: dirbase descend
descend:: dirbase
+@$(MK) -C $(OBJ_DIR) -f $(GRANDP)Makefile TOP=$(GRANDP) $(LIB_NAME) $(HB_USER_MAKEFLAGS)
vpath $(LIB_NAME) $(LIB_DIR)
$(LIB_NAME) : $(ALL_OBJS)
$(AR_RULE)
INSTALL_FILES = $(LIB_FILE)
INSTALL_DIR = $(HB_LIB_INSTALL)
include $(TOP)$(ROOT)config/install.cf
endif
endif