| Line 21... |
Line 21... |
| 21 |
|
21 |
|
| 22 |
## There is a makefile.mingw these days
|
22 |
## There is a makefile.mingw these days
|
| 23 |
## Neither the makefile.{mingw,std} build pnggccrd.c but it is needed if
|
23 |
## Neither the makefile.{mingw,std} build pnggccrd.c but it is needed if
|
| 24 |
## the compiler defines __MMX__ , which the win64 gcc does.
|
24 |
## the compiler defines __MMX__ , which the win64 gcc does.
|
| 25 |
## So we need to explicitly disable it.
|
25 |
## So we need to explicitly disable it.
|
| - |
|
26 |
## prefix=foo shuts up a warning
|
| 26 |
buildpng:
|
27 |
buildpng:
|
| 27 |
$(MAKE) CC='$(CC)' AR='$(AR)' \
|
28 |
$(MAKE) CC='$(CC)' AR='$(AR)' \
|
| 28 |
CFLAGS="-O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE" \
|
29 |
CFLAGS="-O3 -I../../../extra/zlib -DPNG_NO_MMX_CODE" \
|
| 29 |
RANLIB=$(RANLIB) ZLIBLIB=../../../extra/zlib -C $(PNGDIR) \
|
30 |
RANLIB=$(RANLIB) ZLIBLIB=../../../extra/zlib -C $(PNGDIR) \
|
| 30 |
-f scripts/makefile.mingw libpng.a
|
31 |
-f scripts/makefile.mingw prefix=foo libpng.a
|
| 31 |
|
32 |
|
| 32 |
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
|
- |
|
| 33 |
# under CYGWIN. They are here since the configure script doesn't run
|
- |
|
| 34 |
# (I suspect) using the reduced set of tools we distribute.
|
- |
|
| 35 |
## 2006-01-15 checked under current tools
|
- |
|
| 36 |
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
|
33 |
buildjpeg: $(JPEGDIR)/jconfig.h Makefile.jpeg
|
| 37 |
$(MAKE) CC='$(CC)' AR='$(AR) rc' RANLIB=$(RANLIB) JPEGDIR=$(JPEGDIR) -C $(JPEGDIR) \
|
34 |
$(MAKE) CC='$(CC)' AR='$(AR) rc' RANLIB=$(RANLIB) JPEGDIR=$(JPEGDIR) -C $(JPEGDIR) \
|
| 38 |
-f ../Makefile.jpeg libjpeg.a
|
35 |
-f ../Makefile.jpeg libjpeg.a
|
| 39 |
|
36 |
|
| 40 |
$(JPEGDIR)/jconfig.h: jconfig.h
|
37 |
$(JPEGDIR)/jconfig.h: jconfig.h
|