extract common files and build once

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10093 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-11-21 07:53:19 +00:00
parent 94fbebbd4e
commit 00c8f309d3
2 changed files with 13 additions and 38 deletions

View File

@ -2,7 +2,7 @@ SubDir OBOS_TOP src libs png ;
UseLibraryHeaders zlib ;
SharedLibrary png :
local shared_files =
png.c
pngerror.c
pnggccrd.c
@ -20,25 +20,10 @@ SharedLibrary png :
pngwrite.c
pngwtran.c
pngwutil.c
: z ;
StaticLibrary png :
png.c
pngerror.c
pnggccrd.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngvcrd.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
: STATIC_LIBRARY_DIR
;
Objects $(shared_files) ;
SharedLibrary png : [ FGristFiles $(shared_files:S=.o) ] : z ;
StaticLibrary png : [ FGristFiles $(shared_files:S=.o) ] : STATIC_LIBRARY_DIR ;

View File

@ -2,7 +2,7 @@ SubDir OBOS_TOP src libs zlib ;
UseLibraryHeaders zlib ;
SharedLibrary z :
local shared_files =
adler32.c
compress.c
crc32.c
@ -17,19 +17,9 @@ SharedLibrary z :
zutil.c
;
StaticLibrary z :
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
: STATIC_LIBRARY_DIR
;
Objects $(shared_files) ;
SharedLibrary z : [ FGristFiles $(shared_files:S=.o) ] ;
StaticLibrary z : [ FGristFiles $(shared_files:S=.o) ] : STATIC_LIBRARY_DIR ;