GNUmakefile
608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# 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)