* config/linux/libs.mk
! Deleted some stuff left when doing the copy from
global.mk (yesterday).
Should fix double -fPIC switches seen on 64-bit Linux builds.
* config/linux/libs.mk
+ Adding /usr/X11R6/lib64 to sys lib path list on 64-bit systems.
If you find this wrong, please tell, we can tweak conditions.
* config/bsd/gcc.mk
* config/darwin/gcc.mk
* config/hpux/gcc.mk
* config/linux/gcc.mk
* config/sunos/gcc.mk
* Changed to just plain pass list of obj on cmdline in dynamic
lib creation rule. Should be safe on these OSes according to this doc:
http://www.in-ulm.de/~mascheck/various/argmax/
(we need about 31-32KB of cmdline at this moment)
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(HB_BUILD_MODE),cpp)
|
|
HB_CMP := g++
|
|
else
|
|
HB_CMP := gcc
|
|
endif
|
|
|
|
OBJ_EXT := .o
|
|
LIB_PREF := lib
|
|
LIB_EXT := .a
|
|
|
|
CC := $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX)
|
|
CC_IN := -c
|
|
CC_OUT := -o
|
|
|
|
CPPFLAGS := -I. -I$(HB_INC_COMPILE)
|
|
CFLAGS :=
|
|
LDFLAGS :=
|
|
|
|
ifneq ($(HB_BUILD_WARN),no)
|
|
CFLAGS += -Wall -W
|
|
endif
|
|
|
|
ifneq ($(HB_BUILD_OPTIM),no)
|
|
CFLAGS += -O3
|
|
endif
|
|
|
|
# uncomment this if you want to force relocateable code for .so libs
|
|
# it's necessary on some platforms but can reduce performance
|
|
#CFLAGS += -fPIC
|
|
|
|
ifeq ($(HB_BUILD_DEBUG),yes)
|
|
CFLAGS += -g
|
|
endif
|
|
|
|
LD := $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX)
|
|
LD_OUT := -o
|
|
|
|
LIBPATHS := $(LIB_DIR)
|
|
|
|
LDLIBS := $(foreach lib,$(LIBS) $(SYSLIBS),-l$(lib))
|
|
LDFLAGS += $(foreach dir,$(LIBPATHS) $(SYSLIBPATHS),-L$(dir))
|
|
|
|
AR := $(HB_CCPREFIX)ar
|
|
ARFLAGS :=
|
|
AR_RULE = $(AR) $(ARFLAGS) $(HB_USER_AFLAGS) crs $(LIB_DIR)/$@ $(^F) || ( $(RM) $(LIB_DIR)/$@ && false )
|
|
|
|
DY := $(CC)
|
|
DFLAGS := -shared -fPIC $(foreach dir,$(SYSLIBPATHS),-L$(dir))
|
|
DY_OUT := -o$(subst x,x, )
|
|
DLIBS := $(foreach lib,$(SYSLIBS),-l$(lib))
|
|
|
|
DY_RULE = $(DY) $(DFLAGS) $(HB_USER_DFLAGS) $(DY_OUT)$(DYN_DIR)/$@ $^ $(DLIBS)
|
|
|
|
include $(TOP)$(ROOT)config/rules.mk
|