Files
harbour-core/harbour/config/win/pocc.mk
Viktor Szakats 2b5e574b09 2010-04-13 12:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/poccarm.mk
  * config/dos/watcom.mk
  * config/win/xcc.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/watcom.mk
  * config/linux/watcom.mk
  * config/os2/watcom.mk
    * Changed to not forcefully turn off warnings in some targets.
      (so HB_BUILD_WARN=no is now equivalent to hbmk2 -warn=def)
    ; NOTE: This will result in some new warnings in /external
            dir since for above compilers I've now upped the
            warning level from nothing to the default level.

  * external/zlib/Makefile
    * Changed to not set Harbour level warnings for this
      external component (in sync with all the others).
2010-04-13 10:20:35 +00:00

69 lines
1.4 KiB
Makefile

#
# $Id$
#
# GNU MAKE file for Pelles ISO C Compiler
OBJ_EXT := .obj
LIB_PREF :=
LIB_EXT := .lib
HB_DYN_COPT := -DHB_DYNLIB
CC := pocc.exe
CC_IN := -c
CC_OUT := -Fo
CFLAGS += -I. -I$(HB_INC_COMPILE)
CFLAGS += -Ze -Go -MT
ifneq ($(HB_BUILD_WARN),no)
CFLAGS += -W1
endif
ifneq ($(HB_BUILD_OPTIM),no)
CFLAGS += -Ot
# -Ox: can cause GPF in 4.50/5.00, so it's disabled.
endif
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
RC := porc.exe
RC_OUT := -fo$(subst x,x, )
RCFLAGS :=
LD := polink.exe
LD_OUT := -out:
LIBPATHS := -libpath:$(LIB_DIR)
LDLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS),$(lib)$(LIB_EXT))
LDFLAGS += -subsystem:console
LDFLAGS += $(LIBPATHS)
AR := polib.exe
AR_RULE = $(AR) $(ARFLAGS) $(HB_AFLAGS) $(HB_USER_AFLAGS) -out:$(LIB_DIR)/$@ $(^F)
DY := $(LD)
DFLAGS += -nologo -dll $(LIBPATHS)
DY_OUT := $(LD_OUT)
DLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS),$(lib)$(LIB_EXT))
# NOTE: The empty line directly before 'endef' HAVE TO exist!
define dyn_object
@$(ECHO) $(ECHOQUOTE)$(file)$(ECHOQUOTE) >> __dyn__.tmp
endef
define create_dynlib
$(if $(wildcard __dyn__.tmp),@$(RM) __dyn__.tmp,)
$(foreach file,$^,$(dyn_object))
$(DY) $(DFLAGS) $(HB_USER_DFLAGS) $(DY_OUT)"$(subst /,$(DIRSEP),$(DYN_DIR)/$@)" -implib:"$(IMP_FILE)" @__dyn__.tmp $(DLIBS)
endef
DY_RULE = $(create_dynlib)
include $(TOP)$(ROOT)config/rules.mk