s-news
[Top] [All Lists]

SPlus and gcc compiler

To: s-news@lists.biostat.wustl.edu
Subject: SPlus and gcc compiler
From: Urs Wagner <wagner@itp.phys.ethz.ch>
Date: Fri, 27 Aug 2004 12:49:48 +0200
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
Hello

Thanks to Prof Ripley.
I found more information about in manual S Programming. For me the manual is a bit too compressed.
I have often messed the Unix commands with Windows.
I am using now my own makefile make.mak. I only generate the chapter.mif file. To do this I make
the following command sequence.

chapter -s
del chapter.mif
chapter -m

Urs
# Rules for GNU's MAKE

include chapter.mif

.SUFFIXES:
.SUFFIXES: .c .f .o .obj .dll

SHOME=C:\\Splus62

SPEXPORT = $(SHOME)\\cmd\\spexport.exe

LINK=gcc
CC=gcc
CXX=$(CC)
FC=g77
RC=rc
LFLAGS1 = -shared -o
LFLAGS2 = -L${SHOME}\\lib\\mingw -lSqpe
CFLAGS = -mrtd -I$(SHOME)\\include
CXXFLAGS = $(CFLAGS)
FFLAGS = -02 -c
RFLAGS = /l 0x409 /fo"S.res"

.c.o:
        $(CC) $(CFLAGS) $($*-CFLAGS) -c $< -o $@


.o.obj:
        mv $< $@ 

.f.o:
        $(FC) $(FFLAGS) $<


S.dll: $(RES) $(OBJ)
        $(LINK) $(LFLAGS1) $@ $(OBJ) $(LFLAGS2)

#boot:
#       @if test -s all.Sdata;    then (BOOTING_S="TRUE" export BOOTING_S;  
echo "terminate('should have been booting S')"| $(SHOME)/S);        fi


#clean:
#       -del $(OBJ)


<Prev in Thread] Current Thread [Next in Thread>