Rev 83755 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
include ../MkRulesR_HOME = ../../..CFLAGS = -O3 -Wall -pedanticifdef DEBUGCFLAGS += $(G_FLAG)LINKFLAGS =DLLFLAGS =elseLINKFLAGS = -sDLLFLAGS = -sendifCPPFLAGS = -I../../include $(arch_DEFS)ifeq "$(WIN)" "32"## Increase stack size to 16MbLARGE_STACK = -Wl,--stack=0x1000000## allow 32-bit builds to address over 2GbLARGE_ADDR = -Wl,--large-address-awareelse## Increase stack size to 64MbLARGE_STACK = -Wl,--stack=0x4000000endifrcmdfn-CFLAGS = -DBINDIR='"$(BINDIR)"'.PHONY : all makeMakedepsall: makeMakedeps \$(R_HOME)/$(BINDIR)/Rgui.exe $(R_HOME)/$(BINDIR)/Rterm.exe \$(R_HOME)/$(BINDIR)/Rcmd.exe $(R_HOME)/$(BINDIR)/RSetReg.exe \$(R_HOME)/$(BINDIR)/R.exe\$(R_HOME)/$(BINDIR)/Rscript.exe $(R_HOME)/$(BINDIR)/open.exe \$(R_HOME)/$(BINDIR)/Rfe.exe \$(R_HOME)/bin/R.exe $(R_HOME)/bin/Rscript.exe$(R_HOME)/$(BINDIR)/Rgui.exe: Rgui.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/Rterm.exe: Rterm.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/Rcmd.exe: Rcmd.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/RSetReg.exe: RSetReg.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/R.exe: R.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/Rfe.exe: Rfe.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/bin/R.exe: Rfe.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/bin/Rscript.exe: Rfe.exe$(MKDIR) -p $(R_HOME)/bin$(CP) $^ $@$(R_HOME)/$(BINDIR)/Rscript.exe: Rscript.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@$(R_HOME)/$(BINDIR)/open.exe: open.exe$(MKDIR) -p $(R_HOME)/$(BINDIR)$(CP) $^ $@rgui-CPPFLAGS = -DWin32rterm-CPPFLAGS = -DWin32## -luser32 -lkernel32 -ladvapi32 -lshell32 are now standardR-LIBS = -lole32 -luuidRcmd-LIBS = -lole32 -luuidRfe-LIBS = -lole32 -luuidRgui-LIBS = -L../../../$(IMPDIR) -lR -lRgraphappRscript-LIBS = -L../../../$(IMPDIR) -lR -lRgraphapp -lshlwapiRterm-LIBS = -L../../../$(IMPDIR) -lR -lRgraphapp -lshlwapiRgui-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.oifneq "$(WIN)" "64"rcico.o: Rcmd.exe.manifestrgico.o: RGui32.manifestrsico.o: Rscript.exe.manifestrtico.o: Rterm32.manifestelseRESFLAGS = -DWN64rcico.o: Rcmd64.exe.manifestrtico.o: Rterm64.manifestrsico.o: Rscript64.exe.manifestrgico.o: RGui64.manifestendifRcmd.exe: rcmd.o ../rhome.o ../shext.o rcico.o rcmdfn.o Renviron.oR.exe: R.o ../rhome.o ../shext.o rcico.o rcmdfn.o Renviron.oRfe.exe: Rfe.o ../rhome.o ../shext.o rcico.o rcmdfn.o Renviron.oRSetReg.exe: RSetReg.o ../rhome.o rcico.oRscript.o: ../../unix/Rscript.c ../../include/Rversion.h$(CC) $(CFLAGS) -DBINDIR='"$(BINDIR)"' -I. -I../../include -DHAVE_CONFIG_H -c $< -o $@Renviron.o: ../../main/Renviron.c$(CC) $(CFLAGS) -I. -I../../include -DRENVIRON_WIN32_STANDALONE -c $< -o $@Rscript.exe: Rscript.o rsico.o## Used only in writing etc/.../MakeconfRpwd:$(MAKE) -C ../../include -f Makefile.win version$(MAKE) Rpwd.exeRpwd.exe: rpwd.o rcico.orcmd.o R.o rgui.o rterm.o RSetReg.o rgico.o rtico.o rcico.o rsico.c: ../../include/Rversion.hopen.o: open.copen.exe: open.oclean:$(RM) *.o *.obj *.exe *~ *.exp *.dll *.lib *.a *.d MakedepsCSOURCES = $(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