GNUmakefile
1.53 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!smake
#
# Makefile for multigen database conversion tools
#
include $(ROOT)/usr/include/make/PRdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include
GLDOPTS=-L$(ROOT)/host_lib
OPTIMIZER = -g
TARGETS=flt2c rgb2c ppmquant imscale
SCRIPTS= mksprite mkisprite mksprite32 mksprite8 mkspriteyuv mkspriteia
LCOPTS =-Wall
LCINCS =-I. -I$(ROOT)/usr/include/PR
#LLDOPTS=-L$(ROOT)/usr/lib/PR -B static
LLDLIBS= -limage -lm
LDIRT = libppm.a libpgm.a libpbm.a
default: $(TARGETS)
include $(COMMONRULES)
SOURCES=flt2c.h flt2c.c rgb2c.c readtex.c readtex.h \
libpbm.h libpgm.h libppm.h pbm.h pbmplus.h pgm.h \
ppm.h ppmcmap.h version.h \
ppmquant.c libppm1.c libppm2.c libppm3.c libpgm1.c \
libpbm1.c libpbm2.c libpbm4.c imscale.c \
ppmquant.1
flt2c: flt2c.o readtex.o
$(CCF) flt2c.o readtex.o $(LDFLAGS) -o $@
rgb2c: rgb2c.o readtex.o
$(CCF) rgb2c.o readtex.o $(LDFLAGS) -o $@
imscale: imscale.o
$(CCF) imscale.o $(LDFLAGS) -o $@
ppmquant: ppmquant.o libppm.a libpgm.a libpbm.a
$(CCF) ppmquant.o libppm.a libpgm.a libpbm.a $(LDFLAGS) -o $@
ppmquant.o: ppmquant.c
# $(CCF) -woff 709 -c ppmquant.c
$(CCF) -c ppmquant.c
libppm.a: libppm1.o libppm2.o libppm3.o
$(AR) cru $@ $?
libpgm.a: libpgm1.o
$(AR) cru $@ $?
libpbm.a: libpbm1.o libpbm2.o libpbm4.o
$(AR) cru $@ $?
exports: default
$(INSTALL) -F /usr/sbin $(TARGETS) $(SCRIPTS)
install: default
$(INSTALL) -F /usr/sbin $(TARGETS) $(SCRIPTS)
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/conv $(SOURCES) $(SCRIPTS)
$(INSTALL) -m 444 -F /usr/src/PR/libsrc/conv -src Makefile.install Makefile