# # $Id$ # # How to run yacc. YACC = bison YACC_FLAGS := -d $(YACC_FLAGS) # How to run lex. LEX = flex LEX_FLAGS := -i -8 $(LEX_FLAGS) # # How to run Harbour. # HB := $(notdir $(HB_BIN_COMPILE)) ifneq ($(HB),) # there is no slash at the end HB := $(HB_BIN_COMPILE)/ endif HB := $(HB)harbour$(EXE_EXT) ifeq ($(HB_GCMODE),) HB_GCMODE=3 endif ifeq ($(HB_NFLAG),) HB_NFLAG= endif HB_FLAGS := -i$(HB_INC_COMPILE) -q0 -w3 -es2 -km -l HB_RULE = $(HB) $? $(HB_NFLAG) $(HB_FLAGS) -gc$(HB_GCMODE) $(HB_USER_PRGFLAGS) # The rule to link an executable. ifeq ($(LD_RULE),) # Use default rule if architecture/compiler specific rule is not defined LD_RULE = $(LD) $(CFLAGS) $(LD_OUT)$@ $(^F) $(LDFLAGS) $(HB_USER_LDFLAGS) $(LINKLIBS) endif # The rule to compile a C source file. ifeq ($(CC_RULE),) # Use default rule if architecture/compiler specific rule is not defined CC_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$(