Makefile
1.24 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
#!smake
#
# Makefile for multigen database conversion tools
#
include $(ROOT)/usr/include/make/PRdefs
OPTIMIZER = -g
TARGETS=flt2walk rgb2c ppmquant
LCOPTS =-fullwarn
LCINCS =-I. -I$(ROOT)/usr/include/PR
LLDOPTS=-L$(ROOT)/usr/lib/PR
LLDLIBS= -limage -lm
LDIRT = libppm.a libpgm.a libpbm.a
default: $(TARGETS)
include $(COMMONRULES)
SOURCES=Makefile flt2walk.h flt2walk.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 \
mksprite mkisprite mksprite32
flt2walk: flt2walk.o readtex.o
$(CCF) flt2walk.o readtex.o $(LDFLAGS) -o $@
rgb2c: rgb2c.o readtex.o
$(CCF) rgb2c.o readtex.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
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) mksprite mkisprite mksprite32
install: default
$(INSTALL) -F /usr/sbin $(TARGETS)
$(INSTALL) -m 444 -F /usr/src/PR/conv $(SOURCES)