The R Project SVN R

Rev

Rev 6507 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# Makefile for packages, only.

include MkRules

HELP=YES
WINHELP=NO # Ue one of NO, CHM, BOTH (chm and winhelp)

ifdef DEBUG
 OPTFLAGS=-g -O2 -Wall
 DLLFLAGS=
else
 OPTFLAGS=-O2 -Wall
 DLLFLAGS=-s 
endif
CFLAGS=$(OPTFLAGS) -I../include
FFLAGS=$(OPTFLAGS)

libR.a:  R.exp
    $(DLLTOOL) $(DLLTOOLFLAGS) $(R-DLLTOOLFLAGS) --dllname R.dll --def R.exp --output-lib libR.a

base-HELP=ziponly


pkg-%:  libR.a #../include/globalvar.h
    $(MAKE) DLLNM=$($*-DLLNM)  EXTRADOCS=$($*-EXTRADOCS) -C ../library/$* PKG=$* -f ../../gnuwin32/MakePkg
ifeq ($(strip $(HELP)),YES)
    $(MAKE) -C ./help $($*-HELP)help-$*
    $(MAKE) -C ./help contents-$*
ifeq ($(strip $(WINHELP)),CHM)
    $(MAKE) -C ./help chm-$*
endif
ifeq ($(strip $(WINHELP)),BOTH)
    $(MAKE) -C ./help winhlp-$* # also makes chm
endif
endif

pkgcheck-%:
    -mkdir -p ../library/$*/check
    $(MAKE) -C ../library/$*/check PKG=$* -f ../../../gnuwin32/check/PkgCheck


ziphelp-%:
    $(MAKE) -C ./help ziphelp-$*
    $(MAKE) -C ./help contents-$*

ziponly-%:
    $(MAKE) -C ./help ziponlyhelp-$*
    $(MAKE) -C ./help contents-$*




bootstrap-DLLNM=boott