~ubuntu-branches/ubuntu/vivid/pngnq/vivid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Nelson A. de Oliveira
  • Date: 2005-10-19 18:37:18 UTC
  • Revision ID: james.westby@ubuntu.com-20051019183718-6mq0vcc4sij39jku
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for pngnq
 
2
 
 
3
CC=gcc
 
4
 
 
5
PNGINC = ../libpng
 
6
PNGLIB = /usr/lib
 
7
 
 
8
ZINC = ../zlib
 
9
ZLIB = ../zlib
 
10
 
 
11
CFLAGS = -O3 -g -Wall -I. -I$(PNGINC) -I$(ZINC) -funroll-loops -fomit-frame-pointer
 
12
 
 
13
#LDFLAGS = -L$(PNGLIB) -lpng -L$(ZLIB) -lz -lm
 
14
LDFLAGS = $(PNGLIB)/libpng.a -L$(ZLIB) -lz -lm
 
15
#LDFLAGS = $(PNGLIB)/libpng.a $(ZLIB)/libz.a -lm
 
16
 
 
17
OBJS = pngnq.o rwpng.o neuquant32.o
 
18
 
 
19
all: pngnq
 
20
 
 
21
pngnq: $(OBJS)
 
22
        $(CC) -o $@ $(OBJS) $(LDFLAGS)
 
23
 
 
24
clean:
 
25
        rm -f pngnq $(OBJS)