Rev 42664 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
include ../MkRulesR_HOME = ../../..ifdef DEBUGOPTFLAGS=$(G_FLAG) -O3 -WallLINKFLAGS=DLLFLAGS=elseOPTFLAGS=-O3 -Wall -pedanticLINKFLAGS=-sDLLFLAGS=-sendifCPPFLAGS=-I../../includeCFLAGS=$(OPTFLAGS)## Increase stack size to 10MbLARGE_STACK=-Wl,--stack=0xA00000## allow 32-bit builds to address over 2Gbifeq ($(strip $(WIN)),32)LARGE_ADDR=-Wl,--large-address-awareendif.PHONY : all makeMakedepsall: makeMakedeps \$(R_HOME)/bin/Rgui.exe $(R_HOME)/bin/Rterm.exe \$(R_HOME)/bin/Rcmd.exe $(R_HOME)/bin/RSetReg.exe \$(R_HOME)/bin/Rproxy.dll $(R_HOME)/bin/R.exe \$(R_HOME)/bin/md5check.exe $(R_HOME)/bin/Rscript.exe$(R_HOME)/bin/Rgui.exe: Rgui.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/Rterm.exe: Rterm.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/Rcmd.exe: Rcmd.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/RSetReg.exe: RSetReg.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/R.exe: R.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/md5check.exe: md5check.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/Rscript.exe: Rscript.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@#graphappmain-CPPFLAGS=-I../../extrargui-CPPFLAGS=-DWin32rterm-CPPFLAGS=-DWin32## -luser32 -lkernel32 -ladvapi32 -lshell32 are now standardRgui-LIBS=-L../../../$(IMPDIR) -lR -lgraphappRscript-LIBS=-L../../../$(IMPDIR) -lR -lgraphappRterm-LIBS=-L../../../$(IMPDIR) -lR -lgraphappRgui-LINKFLAGS=-mwindows $(LARGE_ADDR) $(LARGE_STACK)Rterm-LINKFLAGS=$(LARGE_ADDR) $(LARGE_STACK)Rscript-LINKFLAGS=$(LARGE_ADDR) $(LARGE_STACK)Rgui.exe: graphappmain.o rgui.o rgico.oRterm.exe: graphappmain.o rterm.o rtico.oRcmd.exe: rcmd.o ../rhome.o ../shext.o rcico.o rcmdfn.oR.exe: R.o ../rhome.o ../shext.o rcico.o rcmdfn.oRSetReg.exe: RSetReg.o ../rhome.o rcico.omd5check-CPPFLAGS=-I../../../include -I../../library/tools/srcmd5check.exe : md5check.o md5ico.o ../../library/tools/src/md5.oRscript.o: ../../unix/Rscript.c$(CC) $(CFLAGS) -I. -I../../include -DHAVE_CONFIG_H -c $< -o $@Rscript.exe: Rscript.o rcico.oRpwd:$(MAKE) -C ../../include -f Makefile.win version$(MAKE) Rpwd.exeRpwd.exe: rpwd.o rcico.orcmd.o R.o rgui.o rterm.o RSetReg.o rproxy_impl.o rgico.o rtico.o rcico.o: ../../include/Rversion.hrgico.o: Rgui.exe.manifestrtico.o: Rterm.exe.manifestrcico.o: Rcmd.exe.manifestclean:$(RM) *.o *.obj *.exe *~ *.exp *.dll *.lib *.a *.d Makedepsbdx_util-CFLAGS=-D_IN_RPROXY_bdx_com-CFLAGS=-D_IN_RPROXY_bdx_SEXP-CFLAGS=-D_IN_RPROXY_## for graphapp.hrproxy_impl-CFLAGS=-I../../../includeRproxy-DLLFLAGS=-mwindowsRproxy-DLLLIBS=-L../../../$(IMPDIR) -lR -lgraphapp -lole32 -luuid -loleaut32## this one needs Rproxy.dll as the LIBRARY lineRproxy.dll: Rproxy.def rproxy.o rproxy_dev.o rproxy_impl.o com_util.o \bdx_util.o bdx_SEXP.o bdx_com.o rtico.o$(DLL) -shared $(DLLFLAGS) $($*-DLLFLAGS) -o $@ $^ $($*-DLLLIBS) $(DLLLIBS)$(R_HOME)/bin/Rproxy.dll: Rproxy.dll@$(MKDIR) -p $(R_HOME)/bin$(CP) Rproxy.dll $@CSOURCES=$(filter-out R.c rcmd.c rpwd.c rtest.c, $(wildcard *.c))DEPS=$(CSOURCES:.c=.d)makeMakedeps: $(DEPS)@$(RM) Makedepsifneq ($(strip $(DEPS)),)@cat $(DEPS) >> Makedepsendif-include Makedeps