The R Project SVN R

Rev

Rev 31296 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31296 Rev 32475
1
include ../MkRules
1
include ../MkRules
2
 
2
 
3
JPEGDIR=jpeg-6b
3
JPEGDIR=jpeg-6b
4
PNGDIR=libpng
4
PNGDIR=libpng
5
 
5
 
6
all:
6
all:
7
	@$(MAKE) --no-print-directory buildzlib buildpng buildjpeg rbitmap.o 
7
	@$(MAKE) --no-print-directory buildzlib buildpng buildjpeg rbitmap.o 
8
	@$(MAKE) --no-print-directory installdll
8
	@$(MAKE) --no-print-directory installdll
9
 
9
 
10
buildzlib:
10
buildzlib:
11
	@$(MAKE) -C ../../extra/zlib -f Makefile.win
11
	@$(MAKE) -C ../../extra/zlib -f Makefile.win
12
 
12
 
13
buildpng:
13
buildpng:
14
	@$(MAKE) CC='$(CC)' RANLIB=$(RANLIB) ZLIBLIB=../../../extra/zlib ZLIBINC=../../../extra/zlib -C $(PNGDIR) -f scripts/makefile.std libpng.a
14
	@$(MAKE) CC='$(CC)' RANLIB=$(RANLIB) ZLIBLIB=../../../extra/zlib ZLIBINC=../../../extra/zlib -C $(PNGDIR) -f scripts/makefile.std libpng.a
15
 
15
 
16
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
16
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
17
# under CYGWIN. They are here since the configure script doesn't run 
17
# under CYGWIN. They are here since the configure script doesn't run 
18
# (I suspect) using the reduced set of tools we distribute.
18
# (I suspect) using the reduced set of tools we distribute.
19
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
19
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
20
	$(MAKE) CC='$(CC)' AR='$(AR) rc' RANLIB=$(RANLIB) -C $(JPEGDIR) -f ../Makefile.jpeg libjpeg.a
20
	$(MAKE) CC='$(CC)' AR='$(AR) rc' RANLIB=$(RANLIB) -C $(JPEGDIR) -f ../Makefile.jpeg libjpeg.a
21
 
21
 
22
$(JPEGDIR)/jconfig.h: jconfig.h 
22
$(JPEGDIR)/jconfig.h: jconfig.h 
23
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
23
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
24
 
24
 
25
rbitmap-CFLAGS=-Wall -pedantic -DHAVE_PNG -DHAVE_JPEG -I../../extra/zlib -I./libpng -I$(JPEGDIR) -I../../include
25
rbitmap-CFLAGS=-Wall -pedantic -DHAVE_PNG -DHAVE_JPEG -I../../extra/zlib -I./libpng -I$(JPEGDIR) -I../../include
26
Rbitmap-DLLLIBS=-L../ -lR
26
Rbitmap-DLLLIBS=-L../ $(LIBUNICOWS) -lR
27
Rbitmap-DLLFLAGS=-s
27
Rbitmap-DLLFLAGS=-s
28
 
28
 
29
Rbitmap.dll: rbitmap.o $(PNGDIR)/libpng.a $(JPEGDIR)/libjpeg.a
29
Rbitmap.dll: rbitmap.o $(PNGDIR)/libpng.a $(JPEGDIR)/libjpeg.a
30
 
30
 
31
installdll: Rbitmap.dll
31
installdll: Rbitmap.dll
32
	$(CP) Rbitmap.dll ../../../bin
32
	$(CP) Rbitmap.dll ../../../bin
33
 
33
 
34
clean:
34
clean:
35
	$(RM) *.o *.a *.dll *.def *~ \#*\#
35
	$(RM) *.o *.a *.dll *.def *~ \#*\#
36
	-$(MAKE) CC='$(CC)' -C $(PNGDIR) -f scripts/makefile.std clean
36
	-$(MAKE) CC='$(CC)' -C $(PNGDIR) -f scripts/makefile.std clean
37
	-$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg clean
37
	-$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg clean
38
 
38
 
39
 
39
 
40
 
40
 
41
 
41