50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
|
|
||
|
ZLIBINC=$(LibsPath)/zlib-1.2.7
|
||
|
|
||
|
CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops -c $(PLATFORM_SPECIAL_FLAGS)
|
||
|
|
||
|
SOURCES=$(LibsPath)/lpng1510/example.c \
|
||
|
$(LibsPath)/lpng1510/png.c \
|
||
|
$(LibsPath)/lpng1510/pngerror.c \
|
||
|
$(LibsPath)/lpng1510/pngget.c \
|
||
|
$(LibsPath)/lpng1510/pngmem.c \
|
||
|
$(LibsPath)/lpng1510/pngpread.c \
|
||
|
$(LibsPath)/lpng1510/pngread.c \
|
||
|
$(LibsPath)/lpng1510/pngrio.c \
|
||
|
$(LibsPath)/lpng1510/pngrtran.c \
|
||
|
$(LibsPath)/lpng1510/pngrutil.c \
|
||
|
$(LibsPath)/lpng1510/pngset.c \
|
||
|
$(LibsPath)/lpng1510/pngtest.c \
|
||
|
$(LibsPath)/lpng1510/pngtrans.c \
|
||
|
$(LibsPath)/lpng1510/pngwio.c \
|
||
|
$(LibsPath)/lpng1510/pngwrite.c \
|
||
|
$(LibsPath)/lpng1510/pngwtran.c \
|
||
|
$(LibsPath)/lpng1510/pngwutil.c
|
||
|
|
||
|
#not path - just name for directory
|
||
|
OBJSDIR=objs
|
||
|
|
||
|
|
||
|
OBJS = $(OBJSDIR)/png.o \
|
||
|
$(OBJSDIR)/pngset.o \
|
||
|
$(OBJSDIR)/pngget.o \
|
||
|
$(OBJSDIR)/pngrutil.o \
|
||
|
$(OBJSDIR)/pngtrans.o \
|
||
|
$(OBJSDIR)/pngwutil.o \
|
||
|
$(OBJSDIR)/pngread.o \
|
||
|
$(OBJSDIR)/pngrio.o \
|
||
|
$(OBJSDIR)/pngwio.o \
|
||
|
$(OBJSDIR)/pngwrite.o \
|
||
|
$(OBJSDIR)/pngrtran.o \
|
||
|
$(OBJSDIR)/pngwtran.o \
|
||
|
$(OBJSDIR)/pngmem.o \
|
||
|
$(OBJSDIR)/pngerror.o \
|
||
|
$(OBJSDIR)/pngpread.o
|
||
|
|
||
|
|
||
|
all:
|
||
|
-@if [ ! -d $(OBJSDIR) ]; then mkdir $(OBJSDIR); fi
|
||
|
cd $(OBJSDIR); \
|
||
|
$(CC) $(CFLAGS) $(SOURCES); \
|
||
|
cd ..
|
||
|
ar rcs libpng.a $(OBJS)
|