blob: 2c9ca5708123750e581c91e878857ba60cb8d01b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- do.sh.old 2011-12-15 23:43:08.000000000 +0100
+++ do.sh 2011-12-28 11:52:21.000000000 +0100
@@ -98,11 +98,11 @@
for C in $SOURCES; do OS="$OS ${C%.*}.o"; done
set -e
for C in $SOURCES; do
- echo + $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C
- $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C
+ echo + $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C $EXTRAFLAGS
+ $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C $EXTRAFLAGS
done
- echo + $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS
- $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS
+ echo + $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS $EXTRAFLAGS
+ $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS $EXTRAFLAGS
set +e
export TARGET
echo "Created executable file: $TARGET (size: `perl -e 'print -s $ENV{TARGET}'`)."
@@ -111,9 +111,11 @@
SOURCES='ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c'
TARGET=tif22pnm
LIBS="$LIBS_TIFF"
+EXTRAFLAGS=""
build
SOURCES='png22pnm.c'
TARGET=png22pnm
LIBS="$LIBS_PNG"
+EXTRAFLAGS="-lz -lm"
build
|