Rev 4409 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
include MkRulesHELP=YESRHOME=../..HOSTRHOME=/usr/local/share/RPACKAGES=base eda lqs modreg mva stepfunOTHERPACKAGES=$(filter-out $(wildcard ../library/Makefile* ../library/stamp*) $(foreach i, $(PACKAGES),../library/$i) ../library/profile, $(wildcard ../library/*))DISTPACKAGES=$(foreach i, $(OTHERPACKAGES), dist-$(notdir $i))RDIR=gnuwin32RPREFIX=rw0641-2DIRS= . ../nmath ../appl ../mainR-DLLFLAGS=-s -mwindowsR-DLLLIBS=-L. $(FLIBS) -lwsock32 -lcomctl32SOURCES=$(foreach i,$(DIRS),$(wildcard $i/*.c $i/*.f))UFILES= ../unix/devPS.c ../unix/devPicTeX.c ../unix/sock.c ../unix/Rsock.cLIBFILES=$(foreach i, $(PACKAGES), ../../library/$i)OBJSO=$(foreach i, $(SOURCES) $(UFILES) $(EXTRAFILES), $(basename $i).o)OBJS-NO=OBJS=$(filter-out $(OBJS-NO),$(OBJSO))PKGS=$(foreach i, $(PACKAGES), pkg-$i)DIRSOBJ=$(foreach i, $(DIRS) ../unix , $i/*.o)EXTRALIBS=rx.a ga.a gl.a xdr.a.PHONY: clean veryclean rlibs fixfiles front-endsall: fixfiles rbuild rdemo rpackageOPTFLAGS=-O2 -WallCFLAGS=$(OPTFLAGS) -I../includeFFLAGS=$(OPTFLAGS)../main/saveload-CFLAGS=-Ixdr../main/character-CFLAGS=-Iregex../main/platform-CFLAGS=-Iregex../unix/sock-CFLAGS=-DWin32../unix/Rsock-CFLAGS=-DWin32rbuild: fixfiles rlibs ../../bin/R.dll libR.a ../include/globalvar.h \front-ends COPYRIGHTSrpackage: $(PKGS)rdemo: libR.amake -C ../../demos/dynload -f ../../src/gnuwin32/MkDyndemorlibs $(EXTRALIBS):$(MAKE) -C ./regex$(MAKE) -C ./graphapp$(MAKE) -C ./getline$(MAKE) -C ./xdrCOPYRIGHTS: ../../COPYRIGHTS COPYRIGHTS.wincat $^ > $@fixfiles:$(MKDIR) -p ../../bin$(MAKE) -C ./fixed$(CP) -pr unzip ../..R.dll: R.a $(EXTRALIBS)../../bin/R.dll: fixfiles rlibs R.dll$(MKDIR) -p ../../bin$(CP) R.dll ../../bin/front-ends: libR.a$(MAKE) -C front-endsR.a: $(OBJS)@$(ECHO) -------- Building $@ --------$(AR) cr R.a $(DIRSOBJ)$(RANLIB) R.a# R.dll exports all global symbols BUT import library (libR.a)# only (all functions) + (global vars listed in exported-vars))libR.a: R.exp$(DLLTOOL) $(DLLTOOLFLAGS) $(R-DLLTOOLFLAGS) --dllname R.dll --def R.exp --output-lib libR.a# This fails on djtools make:R.exp: R.exp1(diff R.exp R.exp1 > /dev/null) || $(CP) R.exp1 R.expR.exp1: R.a $(EXTRALIBS) exported-vars$(ECHO) EXPORTS > $@$(NM) R.a $(EXTRALIBS) > RDefs$(SED) -n "/^........ [T] _/s/^........ [T] _/ /p" RDefs >> $@$(CAT) exported-vars >> $@$(RM) RDefs../main/gram.c: ;../nmath/fround.o: ../nmath/fround.c$(CC) -I../include -o $@ -c $^# avoid building globalvar.h with errors../include/globalvar.h: exported-vars($(AWK) -- '//{if ($$1 != "") print "#define " $$1 " (*__imp_" $$1 ")"}' \exported-vars > ../include/globalvar.h) || $(RM) $@base-HELP=ziponlypkg-%: libR.a #../include/globalvar.h$(MAKE) DLLNM=$($*-DLLNM) EXTRADOCS=$($*-EXTRADOCS) -C ../library/$* PKG=$* -f ../../gnuwin32/MakePkgifeq ($(strip $(HELP)),YES)$(MAKE) -C ./help $($*-HELP)help-$*$(MAKE) -C ./help contents-$*endifpkgcheck-%:$(MAKE) -C ../library/$* PKG=$* -f ../../gnuwin32/check/PkgCheckziphelp-%:$(MAKE) -C ./help ziphelp-$*$(MAKE) -C ./help contents-$*ziponly-%:$(MAKE) -C ./help ziponlyhelp-$*$(MAKE) -C ./help contents-$*all-packages: $(DISTPACKAGES)integrate-DLLNM=adaptbootstrap-DLLNM=boottclean: cleanwin$(RM) -f $(OBJS) $(WINOBJS) *.averyclean: clean$(RM) -rf ../../bin/R.exe ../../library$(RM) -f ../library/*/src/*.o ../library/*/src/*.a$(RM) -f ../library/*/src/*.def ../library/*/src/*.dllcleanwin:$(RM) *.o *.exe *.dll *.a *~ \#*\# *.zip R.def R.exp1 .RData .Rhistory$(MAKE) -C graphapp clean$(MAKE) -C fixed clean$(MAKE) -C regex clean$(MAKE) -C getline clean$(MAKE) -C help clean$(MAKE) -C front-ends clean$(MAKE) -C xdr clean$(MAKE) -C installer cleanbindist:$(RM) -rf $(RPREFIX) library$(MKDIR) $(RPREFIX)$(CP) -pr ../../bin ../../afm ../../demos ../../unzip $(RPREFIX)$(MKDIR) $(RPREFIX)/library$(CP) -pr $(LIBFILES) $(RPREFIX)/library$(RM) -rf $(RPREFIX)/demos/dynload/*.o$(MKDIR) $(RPREFIX)/etc$(CP) -p ../../etc/Rprofile $(RPREFIX)/etc/Rprofile$(CP) -p ../../etc/Rconsole $(RPREFIX)/etc/Rconsole$(CP) -p ../../etc/Rdevga $(RPREFIX)/etc/Rdevga$(CP) -p ../../etc/rgb.txt $(RPREFIX)/etc/rgb.txt$(MKDIR) $(RPREFIX)/doc$(CP) -pr ../../doc/html $(RPREFIX)/doc$(CP) -p ../../COPYING ../../COPYRIGHTS ../../FAQ ../../NEWS $(RPREFIX)$(CP) -p readme $(RPREFIX)/README$(CP) -p rw-faq $(RPREFIX)/rw-faq$(CP) -p announce $(RPREFIX)/Announce$(CP) -p CHANGES $(RPREFIX)/CHANGES$(RM) -rf $(RPREFIX)b.zip $(RPREFIX)h.zip $(RPREFIX)w.zip $(RPREFIX)l.zip$(RM) anindex.zipzip -mr anindex.zip $(RPREFIX)/library/*/help/AnIndex $(RPREFIX)/library/*/help/00Titleszip -mr $(RPREFIX)h.zip $(RPREFIX)/library/*/helpunzip anindex.zip$(RM) anindex.zipzip -rm $(RPREFIX)w.zip $(RPREFIX)/doc/html $(RPREFIX)/library/*/htmlzip -rm $(RPREFIX)l.zip $(RPREFIX)/library/*/latexzip -r $(RPREFIX)b.zip $(RPREFIX)$(RM) -rf $(RPREFIX)srcdist:$(RM) -r ../src src$(MKDIR) ../src$(MKDIR) ../src/gnuwin32$(CP) -pr ./* ../src/gnuwin32$(MAKE) -C ../src/gnuwin32 cleanwinmv ../src .$(RM) $(RPREFIX)s.zipzip -r $(RPREFIX)s.zip src$(RM) -r src#taken from ../include/makefile.inSRC_HEADERS = S.h S_compat.h f2c.h Arith.h Complex.h Error.h Errormsg.h \Fortran.h Applic.h Blas.h Linpack.h Mathlib.h Memory.h PrtUtil.h \Random.h Utils.h Platform.h FFDecl.h FFTab.h globalvar.hpackagedist:$(RM) -r $(RPREFIX)sp.zip src$(MKDIR) src src/include src/library src/gnuwin32 src/gnuwin32/help$(CP) -p ../../copying exported-vars R.exp Makefile MkRules MakePkg MakeDll src/gnuwin32$(CP) -p help/* src/gnuwin32/help$(MAKE) -C src/gnuwin32/help clean$(CP) -p $(foreach i,$(SRC_HEADERS),../include/$i) src/includezip -r $(RPREFIX)sp.zip readme.packages src$(RM) -r srcdistribution: bindist srcdist packagedist# Dependenciesconsole.o: console.h rui.h graphapp/ga.h graphapp/stdimg.hdevga.o: console.h rui.h devga.h opt.h graphapp/ga.h graphapp/stdimg.hdynload.o: ../include/FFDecl.h ../include/FFTab.hedit.o: run.hextra.o: graphapp/ga.hrhome.o: ../include/Platform.hrui.o: console.h opt.h rui.h graphapp/ga.h graphapp/stdimg.hrun.o: run.h graphapp/ga.hsystem.o: devga.h run.h console.h rui.h graphapp/ga.h \../include/Defn.h ../include/Platform.h../main/colors.o: ../include/Graphics.h../main/graphics.o: ../include/Graphics.h../main/par.o: ../include/Graphics.h../main/plot.o: ../include/Graphics.h../main/arithmetic.o: ../include/Mathlib.h ../include/Arith.h../main/format.o: ../include/Mathlib.h ../include/Arith.h../main/random.o: ../include/Mathlib.h ../include/Arith.h ../include/Random.h../main/deparse.o: ../main/names.h../main/names.o: ../main/names.h../main/print.o: ../include/Print.h../main/printarray.o: ../include/Print.h../main/printutils.o: ../include/Print.h../main/printvector.o: ../include/Print.h../main/version.o: ../include/Platform.h../unix/devPS.o: ../include/Graphics.h ../include/Defn.h../unix/devPicTeX.o: ../include/Graphics.h ../include/Defn.h