The R Project SVN R

Rev

Rev 17830 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17830 Rev 27989
Line 1... Line 1...
1
include ../MkRules
1
include ../MkRules
2
 
2
 
3
JPEGDIR=jpeg-6b
3
JPEGDIR=jpeg-6b
-
 
4
PNGDIR=libpng
4
 
5
 
-
 
6
all:
5
all: buildzlib buildpng buildjpeg Rbitmap.dll installdll
7
	@$(MAKE) --no-print-directory buildzlib buildpng buildjpeg rbitmap.o 
-
 
8
	@$(MAKE) --no-print-directory installdll
6
 
9
 
7
buildzlib:
10
buildzlib:
8
#	$(MAKE) CC='$(CC)' AR='$(AR) rcs' -C zlib -f nt/Makefile.gcc libz.a
-
 
9
	$(MAKE) -C ../../extra/zlib -f Makefile.win
11
	@$(MAKE) -C ../../extra/zlib -f Makefile.win
10
 
12
 
11
buildpng:
13
buildpng:
12
	$(MAKE) CC='$(CC)' RANLIB=$(RANLIB) ZLIBLIB=../../../extra/zlib ZLIBINC=../../../extra/zlib -C libpng -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
13
 
15
 
14
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
16
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
15
# 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 
16
# (I suspect) using the reduced set of tools we distribute.
18
# (I suspect) using the reduced set of tools we distribute.
17
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
19
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
Line 19... Line 21...
19
 
21
 
20
$(JPEGDIR)/jconfig.h: jconfig.h 
22
$(JPEGDIR)/jconfig.h: jconfig.h 
21
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
23
	$(CP) jconfig.h $(JPEGDIR)/jconfig.h
22
 
24
 
23
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
24
Rbitmap-DLLLIBS=-L./libpng -lpng -L$(JPEGDIR) -ljpeg -L../ -lR
26
Rbitmap-DLLLIBS=-L$(PNGDIR) -lpng -L$(JPEGDIR) -ljpeg -L../ -lR
25
Rbitmap-DLLFLAGS=-s
27
Rbitmap-DLLFLAGS=-s
26
 
28
 
27
Rbitmap.dll: rbitmap.o
29
Rbitmap.dll: rbitmap.o
28
 
30
 
29
installdll: 
31
installdll: Rbitmap.dll
30
	$(CP) Rbitmap.dll ../../../bin
32
	$(CP) Rbitmap.dll ../../../bin
31
 
33
 
32
clean:
34
clean:
33
	$(RM) *.o *.a *.dll *.def *~ \#*\#
35
	$(RM) *.o *.a *.dll *.def *~ \#*\#
34
	-$(MAKE) CC='$(CC)' -C libpng -f scripts/makefile.std clean
36
	-$(MAKE) CC='$(CC)' -C $(PNGDIR) -f scripts/makefile.std clean
35
	-$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg clean
37
	-$(MAKE) CC='$(CC)' -C $(JPEGDIR) -f ../Makefile.jpeg clean
36
 
38
 
37
 
39
 
38
 
40
 
39
 
41