summaryrefslogtreecommitdiff
path: root/scripts/makefile.dj2
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makefile.dj2')
-rw-r--r--scripts/makefile.dj24
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/makefile.dj2 b/scripts/makefile.dj2
index 09045c275..5ccb4ae2f 100644
--- a/scripts/makefile.dj2
+++ b/scripts/makefile.dj2
@@ -10,6 +10,8 @@ INCPATH=$(prefix)/include
LIBPATH=$(prefix)/lib
CC=gcc
+AR=ar
+ARFLAGS=rc
CFLAGS=-I../zlib -O
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
@@ -22,7 +24,7 @@ OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
all: libpng.a pngtest
libpng.a: $(OBJS)
- ar rc $@ $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@
pngtest: pngtest.o libpng.a