The R Project SVN R

Rev

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

Rev 48991 Rev 51029
Line 1... Line 1...
1
#-*- Makefile -*-
1
#-*- Makefile -*-
2
include ../../gnuwin32/MkRules
2
include ../../gnuwin32/MkRules
3
 
3
 
4
MODULE=internet
4
MODULE=internet
5
all: makeMakedeps ../../../modules/internet.dll ../../../modules/internet2.dll
5
all: makeMakedeps ../../../modules$(R_ARCH)/internet.dll ../../../modules$(R_ARCH)/internet2.dll
6
 
6
 
7
CSOURCES=internet.c nanoftp.c nanohttp.c sockconn.c Rsock.c sock.c Rhttpd.c
7
CSOURCES=internet.c nanoftp.c nanohttp.c sockconn.c Rsock.c sock.c Rhttpd.c
8
 
8
 
9
CPPFLAGS=-I../../include -I../../extra/graphapp -DHAVE_CONFIG_H
9
CPPFLAGS=-I../../include -I../../extra/graphapp -DHAVE_CONFIG_H
10
CFLAGS=$(OPTFLAGS)
10
CFLAGS=$(OPTFLAGS)
11
 
11
 
12
WSOCK=-lws2_32
12
WSOCK=-lws2_32
13
 
13
 
14
../../../modules/internet.dll: internet.o nanoftp.o nanohttp.o sockconn.o Rhttpd.o Rsock.o sock.o dllversion.o
14
../../../modules$(R_ARCH)/internet.dll: internet.o nanoftp.o nanohttp.o sockconn.o Rhttpd.o Rsock.o sock.o dllversion.o
15
	$(MKDIR) -p ../../../modules
15
	$(MKDIR) -p ../../../modules
16
	@$(ECHO) "EXPORTS" > internet.def
16
	@$(ECHO) "EXPORTS" > internet.def
17
	@$(ECHO) " R_init_internet" >> internet.def
17
	@$(ECHO) " R_init_internet" >> internet.def
18
	$(DLL) -shared  -o $@ $^ internet.def -L../../../$(IMPDIR) -lR $(GRAPHAPP_LIB) $(WSOCK)
18
	$(DLL) -shared  -o $@ $^ internet.def -L../../../$(IMPDIR) -lR $(GRAPHAPP_LIB) $(WSOCK)
19
	@$(RM) internet.def
19
	@$(RM) internet.def
20
 
20
 
21
../../../modules/internet2.dll: internet2.o sockconn.o Rhttpd.o Rsock.o sock.o dllversion.o
21
../../../modules$(R_ARCH)/internet2.dll: internet2.o sockconn.o Rhttpd.o Rsock.o sock.o dllversion.o
22
	$(MKDIR) -p ../../../modules
22
	$(MKDIR) -p ../../../modules
23
	@$(ECHO) "EXPORTS" > internet2.def
23
	@$(ECHO) "EXPORTS" > internet2.def
24
	@$(ECHO) " R_init_internet2" >> internet2.def
24
	@$(ECHO) " R_init_internet2" >> internet2.def
25
	$(DLL) -shared  -o $@ $^ internet2.def -L../../../$(IMPDIR) -lR $(GRAPHAPP_LIB) -lwininet $(WSOCK) 
25
	$(DLL) -shared  -o $@ $^ internet2.def -L../../../$(IMPDIR) -lR $(GRAPHAPP_LIB) -lwininet $(WSOCK) 
26
	@$(RM) internet2.def
26
	@$(RM) internet2.def