The R Project SVN R

Rev

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

Rev 8958 Rev 9449
Line 3... Line 3...
3
JPEGDIR=jpeg-6b
3
JPEGDIR=jpeg-6b
4
 
4
 
5
all: buildzlib buildpng buildjpeg Rbitmap.dll installdll
5
all: buildzlib buildpng buildjpeg Rbitmap.dll installdll
6
 
6
 
7
buildzlib: 
7
buildzlib: 
8
	$(MAKE) CC="$(CC)" -C zlib -f nt/Makefile.gcc libz.a
8
	$(MAKE) CC='$(CC)' -C zlib -f nt/Makefile.gcc libz.a
9
 
9
 
10
buildpng:
10
buildpng:
11
	$(MAKE) CC="$(CC)" -C libpng -f scripts/makefile.std libpng.a
11
	$(MAKE) CC='$(CC)' -C libpng -f scripts/makefile.std libpng.a
12
 
12
 
13
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
13
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
14
# under CYGWIN. They are here since the configure script doesn't run 
14
# under CYGWIN. They are here since the configure script doesn't run 
15
# (I suspect) using the reduced set of tools we distribuite.
15
# (I suspect) using the reduced set of tools we distribuite.
16
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
16
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
17
	$(MAKE) CC="$(CC)" -C $(JPEGDIR) -f ../Makefile.jpeg libjpeg.a
17
	$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg libjpeg.a
18
 
18
 
19
$(JPEGDIR)/jconfig.h: jconfig.h 
19
$(JPEGDIR)/jconfig.h: jconfig.h 
20
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
20
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
21
 
21
 
22
rbitmap-CFLAGS=-Wall -pedantic -DHAVE_PNG -DHAVE_JPEG -I./zlib -I./libpng -I$(JPEGDIR) -I../../include/R_ext
22
rbitmap-CFLAGS=-Wall -pedantic -DHAVE_PNG -DHAVE_JPEG -I./zlib -I./libpng -I$(JPEGDIR) -I../../include/R_ext
Line 28... Line 28...
28
installdll: 
28
installdll: 
29
	$(CP) Rbitmap.dll ../../../bin
29
	$(CP) Rbitmap.dll ../../../bin
30
 
30
 
31
clean:
31
clean:
32
	$(RM) *.o *.a *.dll *.def *~ \#*\#
32
	$(RM) *.o *.a *.dll *.def *~ \#*\#
33
	-$(MAKE) CC="$(CC)" RM="$(RM)" -C zlib -f nt/Makefile.gcc clean
33
	-$(MAKE) CC='$(CC)' RM='$(RM)' -C zlib -f nt/Makefile.gcc clean
34
	-$(MAKE) CC="$(CC)" -C libpng -f scripts/makefile.std clean
34
	-$(MAKE) CC='$(CC)' -C libpng -f scripts/makefile.std clean
35
	-$(MAKE) CC="$(CC)" -C $(JPEGDIR) -f ../Makefile.jpeg clean
35
	-$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg clean
36
 
36
 
37
 
37
 
38
 
38
 
39
 
39