GNUmakefile 608 Bytes
#
# Makefile for simple sgi image tools
#
TARGETS = imgsize cglue oneband subimg cscale

PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)

OPTIMIZER = -g

GCOPTS=-Wall -g
GCINCS=-I$(ROOT)/host_include 
GLDOPTS=-L$(ROOT)/host_lib 
LLDOPTS=-limage -lm

default: $(TARGETS)

include $(PRDEPTH)/PRrules

imgsize: imgsize.o
	$(CCF) $^ -o $@ $(LDFLAGS)

cglue: cglue.o
	$(CCF) $^ -o $@ $(LDFLAGS)

oneband: oneband.o
	$(CCF) $^ -o $@ $(LDFLAGS)

subimg: subimg.o
	$(CCF) $^ -o $@ $(LDFLAGS)

cscale: cscale.o
	$(CCF) $^ -o $@ $(LDFLAGS)

exports install: default
	$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)