The R Project SVN R

Rev

Rev 38855 | Rev 47175 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38855 Rev 43767
Line 1... Line 1...
1
#-*- Makefile -*-
1
#-*- Makefile -*-
2
include ../MkRules
2
include ../MkRules
3
 
3
 
-
 
4
LINKFLAGS=-Wl,--stack=0xA00000
4
ifdef DEBUG
5
ifdef DEBUG
5
  DEBUGFLAG=$(G_FLAG)
6
  DEBUGFLAG=$(G_FLAG)
6
  LINKFLAGS=
-
 
7
else
7
else
8
  DEBUGFLAG=
8
  DEBUGFLAG=
9
  LINKFLAGS=-s
9
  LINKFLAGS+=-s
10
endif
10
endif
11
 
11
 
12
CFLAGS=-Wall -O2 -pedantic
12
CFLAGS=-Wall -O2 -pedantic
13
 
13
 
14
rtest-CFLAGS=-I.. -I../../include $(DEBUGFLAG)
14
rtest-CFLAGS=-I.. -I../../include -I../../extra $(DEBUGFLAG)
15
Rtest.exe: rtest.o R.dll Rblas.dll
15
Rtest.exe: rtest.o
16
	$(CC) $(LINKFLAGS) -o $@ rtest.o R.dll
16
	$(CC) $(LINKFLAGS) -o $@ rtest.o -L../../../bin -lR -lgraphapp
17
 
17
 
18
rtest.c: ../../include/Rversion.h
18
rtest.c: ../../include/Rversion.h
19
 
19
 
20
R.dll: ../R.dll
-
 
21
	$(CP) -p $^ $@
-
 
22
 
-
 
23
Rblas.dll: ../../../bin/Rblas.dll
-
 
24
	$(CP) -p $^ $@
-
 
25
 
-
 
26
clean:
20
clean:
27
	$(RM) rtest.o Rtest.exe *~ R.dll Rblas.dll
21
	$(RM) rtest.o Rtest.exe *~
28
 
22
 
29
 
23