~random-stuff/libpng/libpng-1.6.x

« back to all changes in this revision

Viewing changes to scripts/makefile.netbsd

  • Committer: Sérgio Benjamim
  • Date: 2015-10-10 23:00:20 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20151010230020-gdtmmv30zn25396n
Update to 1.6.18.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# make obj && make depend && make && make test
3
3
# make includes && make install
4
4
# Copyright (C) 2002 Patrick R.L. Welche
5
 
# Copyright (C) 2007-2009 Glenn Randers-Pehrson
 
5
# Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson
6
6
#
7
7
# This code is released under the libpng license.
8
8
# For conditions of distribution and use, see the disclaimer
9
9
# and license in png.h
10
10
 
11
 
# You should also run makefile.ne14bsd
 
11
# You should also run makefile.ne16bsd
12
12
 
13
13
LOCALBASE?=/usr/local
14
14
LIBDIR= ${LOCALBASE}/lib
16
16
INCSDIR=${LOCALBASE}/include
17
17
 
18
18
LIB=    png
19
 
SHLIB_MAJOR=    3
20
 
SHLIB_MINOR=    1.4.16
 
19
SHLIB_MAJOR=    16
 
20
SHLIB_MINOR=    1.6.18
21
21
SRCS=   png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
22
22
        pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
23
23
        pngwtran.c pngmem.c pngerror.c pngpread.c
24
 
INCS=   png.h pngconf.h
 
24
INCS=   png.h pngconf.h pnglibconf.h
25
25
MAN=    libpng.3 libpngpf.3 png.5
26
26
 
27
27
CPPFLAGS+=-I${.CURDIR}
28
28
 
 
29
# Pre-built configuration
 
30
# See scripts/pnglibconf.mak for more options
 
31
PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt
 
32
 
29
33
# We should be able to do something like this instead of the manual
30
34
# uncommenting, but it core dumps for me at the moment:
31
35
# .if ${MACHINE_ARCH} == "i386"
32
36
#   MKLINT= no
33
37
# .endif
34
38
 
35
 
CLEANFILES+=pngtest.o pngtest
 
39
CLEANFILES+=pngtest.o pngtest pnglibconf.h
 
40
 
 
41
.c.o:
 
42
        $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
 
43
 
 
44
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
 
45
        cp $(PNGLIBCONF_H_PREBUILT) $@
36
46
 
37
47
pngtest.o:      pngtest.c
38
48
        ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}