#ident "$Id: Makefile,v 1.3 2002/01/01 22:46:46 hpa Exp $"
## -----------------------------------------------------------------------
##   
##   Copyright 2001 Transmeta Corporation - All Rights Reserved
##
##   This source module contains confidential and proprietary information
##   of Transmeta Corporation.  It is not to be disclosed or used except
##   in accordance with applicable agreements.  This copyright notice does
##   not evidence any actual or intended publication of such source code.
##
## -----------------------------------------------------------------------

##
## Makefile for pngtoico
##

INSTALLROOT =
prefix      = /usr/local
bindir	    = $(prefix)/bin
mandir      = $(prefix)/man
man1dir     = $(mandir)/man1

CC      = gcc -W -Wall
CFLAGS  = -O2 -fomit-frame-pointer
LDFLAGS = -s
LIBS    = -lpng
INSTALL = install
INSTALL_EXEC = $(INSTALL) -c -m 755
INSTALL_DATA = $(INSTALL) -c -m 644

all: pngtoico

clean:
	rm -f pngtoico

distclean spotless: clean
	rm -f *~ \#*

install: all
	mkdir -p $(INSTALLROOT)$(bindir) $(INSTALLROOT)$(man1dir)
	$(INSTALL_EXEC) pngtoico $(INSTALLROOT)$(bindir)
	$(INSTALL_DATA) pngtoico.1 $(INSTALLROOT)$(man1dir)

pngtoico: pngtoico.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o pngtoico pngtoico.c $(LIBS)
