2022-06-26 21:22:12 +11:00
|
|
|
#-----------------------------------------------------------------
|
|
|
|
#
|
2022-06-27 09:48:18 +11:00
|
|
|
# The infamous *LIBTTHIMAGE* 20 juin 2022
|
2022-06-26 21:22:12 +11:00
|
|
|
#
|
|
|
|
#-----------------------------------------------------------------
|
|
|
|
|
|
|
|
include ../Paramakes.mk
|
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
DEPS = ../tthimage.h ../Paramakes.mk Makefile
|
2022-06-27 07:55:56 +11:00
|
|
|
|
2024-08-11 20:20:04 +11:00
|
|
|
all: foo testtga t_png testbmp
|
2022-06-27 18:00:44 +11:00
|
|
|
|
2022-06-26 21:22:12 +11:00
|
|
|
#-----------------------------------------------------------------
|
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
7seg.o: 7seg.c $(DEPS)
|
|
|
|
|
2022-06-29 07:28:05 +11:00
|
|
|
alpha.o: alpha.c $(DEPS)
|
|
|
|
alpha2.o: alpha2.c $(DEPS)
|
2022-07-07 21:52:00 +11:00
|
|
|
anamorphose.o: anamorphose.c $(DEPS)
|
2022-06-29 07:28:05 +11:00
|
|
|
|
2022-06-27 07:55:56 +11:00
|
|
|
basic_io.o: basic_io.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
bitblt.o: bitblt.c $(DEPS)
|
2022-07-07 21:52:00 +11:00
|
|
|
bitplanes.o: bitplanes.c $(DEPS)
|
2022-06-29 06:28:22 +11:00
|
|
|
bmp.o: bmp.c $(DEPS) bmp.h
|
2022-06-27 09:48:18 +11:00
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
cadres.o: cadres.c $(DEPS)
|
|
|
|
cadres2.o: cadres2.c $(DEPS)
|
|
|
|
cadres3.o: cadres3.c $(DEPS)
|
|
|
|
cadres4.o: cadres4.c $(DEPS)
|
|
|
|
cadres84.o: cadres84.c $(DEPS)
|
|
|
|
cadresbox.o: cadresbox.c $(DEPS)
|
|
|
|
|
|
|
|
calcluts.o: calcluts.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
calculs.o: calculs.c $(DEPS)
|
|
|
|
classif.o: classif.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
col4bits.o: col4bits.c $(DEPS)
|
|
|
|
col_reduc.o: col_reduc.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
col_xyz.o: col_xyz.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
colors.o: colors.c $(DEPS)
|
|
|
|
colors2.o: colors2.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
combine.o: combine.c $(DEPS)
|
|
|
|
combine2.o: combine2.c $(DEPS)
|
|
|
|
combine3.o: combine3.c $(DEPS)
|
|
|
|
combine4.o: combine4.c $(DEPS)
|
|
|
|
combine5.o: combine5.c $(DEPS)
|
|
|
|
combine6.o: combine6.c $(DEPS)
|
2022-06-28 21:25:31 +11:00
|
|
|
contrast.o: contrast.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
|
2022-06-27 17:53:59 +11:00
|
|
|
detect.o: detect.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
distances.o: distances.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
dither.o: dither.c $(DEPS)
|
|
|
|
dither2.o: dither2.c $(DEPS)
|
|
|
|
dither3.o: dither3.c $(DEPS)
|
|
|
|
doublesz.o: doublesz.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
drawalpha.o: drawalpha.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
drawing.o: drawing.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
drawpatt.o: drawpatt.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
|
2022-06-27 09:48:18 +11:00
|
|
|
effects.o: effects.c $(DEPS)
|
|
|
|
effects2.o: effects2.c $(DEPS)
|
|
|
|
effects3.o: effects3.c $(DEPS)
|
2022-06-27 17:53:59 +11:00
|
|
|
extractbits.o: extractbits.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
|
2022-06-27 17:53:59 +11:00
|
|
|
filtadapt.o: filtadapt.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
filtres.o: filtres.c $(DEPS)
|
2023-11-19 05:56:25 +11:00
|
|
|
falsecolors.o: falsecolors.c $(DEPS)
|
2024-08-15 21:08:37 +11:00
|
|
|
functions.o: functions.c $(DEPS) # new Aug 15, 2024
|
2022-06-27 09:48:18 +11:00
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
gadgrect.o: gadgrect.c $(DEPS)
|
2022-06-27 17:53:59 +11:00
|
|
|
glitch.o: glitch.c $(DEPS)
|
2023-09-18 17:46:13 +11:00
|
|
|
gradient.o: gradient.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
|
2022-06-27 09:48:18 +11:00
|
|
|
halfsize.o: halfsize.c $(DEPS)
|
2022-06-26 21:22:12 +11:00
|
|
|
|
|
|
|
image.o: image.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
imprime.o: imprime.c $(DEPS)
|
2022-06-26 21:22:12 +11:00
|
|
|
|
2022-06-27 09:48:18 +11:00
|
|
|
luts15bits.o: luts15bits.c $(DEPS)
|
|
|
|
|
2022-06-27 07:55:56 +11:00
|
|
|
marques.o: marques.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
mircol.o: mircol.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
morpho.o: morpho.c $(DEPS)
|
|
|
|
mosaic.o: mosaic.c $(DEPS)
|
2022-06-26 21:22:12 +11:00
|
|
|
msglib.o: msglib.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
mustopen.o: mustopen.c $(DEPS)
|
|
|
|
|
2022-06-27 09:48:18 +11:00
|
|
|
operat.o: operat.c $(DEPS)
|
|
|
|
op2x2.o: op2x2.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
palettes.o: palettes.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
patterns.o: patterns.c $(DEPS)
|
|
|
|
patterns2.o: patterns2.c $(DEPS)
|
|
|
|
patterns3.o: patterns3.c $(DEPS)
|
|
|
|
patterns4.o: patterns4.c $(DEPS)
|
2022-06-27 17:53:59 +11:00
|
|
|
photomaton.o: photomaton.c $(DEPS)
|
2022-07-07 21:52:00 +11:00
|
|
|
pcx.o: pcx.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
pht.o: pht.c $(DEPS)
|
|
|
|
pixeliz.o: pixeliz.c $(DEPS)
|
|
|
|
pixels.o: pixels.c $(DEPS)
|
|
|
|
plotteur.o: plotteur.c $(DEPS)
|
2022-07-01 05:33:31 +11:00
|
|
|
png.o: png.c $(DEPS)
|
2022-06-29 06:28:22 +11:00
|
|
|
pnm.o: pnm.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
pov_hf15a.o: pov_hf15a.c $(DEPS)
|
|
|
|
pov_hf15b.o: pov_hf15b.c $(DEPS)
|
|
|
|
pov_hf15c.o: pov_hf15c.c $(DEPS)
|
|
|
|
pov_hf15d.o: pov_hf15d.c $(DEPS)
|
|
|
|
pov_hf15e.o: pov_hf15e.c $(DEPS)
|
|
|
|
pov_hf15f.o: pov_hf15f.c $(DEPS)
|
|
|
|
pov_synth.o: pov_synth.c $(DEPS)
|
2022-06-27 11:19:31 +11:00
|
|
|
ptlist.o: ptlist.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
|
2022-07-07 21:52:00 +11:00
|
|
|
quadpics.o: quadpics.c $(DEPS)
|
|
|
|
|
2022-12-26 15:50:19 +11:00
|
|
|
readjpeg.o: readjpeg.c $(DEPS)
|
2022-06-27 17:53:59 +11:00
|
|
|
recurse.o: recurse.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
rgbmask.o: rgbmask.c $(DEPS)
|
|
|
|
|
|
|
|
scale.o: scale.c $(DEPS)
|
|
|
|
sobel4.o: sobel4.c $(DEPS)
|
2022-06-29 00:14:08 +11:00
|
|
|
stereo.o: stereo.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
|
|
|
|
tamppool.o: tamppool.c $(DEPS)
|
2022-06-27 18:00:44 +11:00
|
|
|
tele_2.o: tele_2.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
television.o: television.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
text0.o: text0.c $(DEPS)
|
|
|
|
text1.o: text1.c $(DEPS)
|
|
|
|
text16x24.o: text16x24.c $(DEPS)
|
|
|
|
tga.o: tga.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
tools.o: tools.c $(DEPS)
|
2022-07-07 21:52:00 +11:00
|
|
|
turtle.o: turtle.c $(DEPS)
|
2022-06-27 09:48:18 +11:00
|
|
|
|
|
|
|
vignetize.o: vignetize.c $(DEPS)
|
|
|
|
|
|
|
|
warp0.o: warp0.c $(DEPS)
|
|
|
|
warp1.o: warp1.c $(DEPS)
|
|
|
|
warp2.o: warp2.c $(DEPS)
|
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
zoom.o: zoom.c $(DEPS)
|
2022-06-27 07:55:56 +11:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------
|
|
|
|
|
2022-06-27 11:19:31 +11:00
|
|
|
OBJECTS = 7seg.o \
|
2022-07-07 21:52:00 +11:00
|
|
|
alpha.o alpha2.o anamorphose.o \
|
|
|
|
basic_io.o bitblt.o bitplanes.o bmp.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
cadres2.o cadres3.o cadres4.o cadres84.o cadresbox.o \
|
|
|
|
cadres.o \
|
2022-07-07 21:52:00 +11:00
|
|
|
calcluts.o calculs.o classif.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
col4bits.o colors.o colors2.o col_reduc.o col_xyz.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
combine.o combine2.o combine3.o combine4.o combine5.o \
|
2022-06-29 00:14:08 +11:00
|
|
|
combine6.o combine_rnd.o \
|
2022-06-28 21:25:31 +11:00
|
|
|
contrast.o \
|
2022-06-27 17:53:59 +11:00
|
|
|
detect.o distances.o \
|
2023-09-30 12:01:07 +11:00
|
|
|
dither.o dither2.o dither3.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
doublesz.o drawalpha.o drawing.o drawpatt.o \
|
2022-06-27 17:53:59 +11:00
|
|
|
effects.o effects2.o effects3.o extractbits.o \
|
2023-11-19 05:56:25 +11:00
|
|
|
filtadapt.o filtres.o falsecolors.o \
|
2024-08-15 21:08:37 +11:00
|
|
|
functions.o \
|
2023-09-18 17:46:13 +11:00
|
|
|
gadgrect.o glitch.o gradient.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
halfsize.o \
|
|
|
|
image.o imprime.o \
|
|
|
|
luts15bits.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
marques.o mircol.o morpho.o mosaic.o msglib.o \
|
|
|
|
mustopen.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
operat.o op2x2.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
palettes.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
patterns.o patterns2.o patterns3.o patterns4.o \
|
2022-07-07 21:52:00 +11:00
|
|
|
pcx.o \
|
2022-06-27 17:53:59 +11:00
|
|
|
photomaton.o pht.o pixeliz.o pixels.o plotteur.o \
|
2022-07-01 05:33:31 +11:00
|
|
|
pnm.o png.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
pov_hf15a.o pov_hf15b.o pov_hf15c.o pov_hf15d.o \
|
|
|
|
pov_hf15e.o pov_hf15e.o pov_hf15f.o pov_synth.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
ptlist.o \
|
2022-07-07 21:52:00 +11:00
|
|
|
quadpics.o \
|
2022-12-26 15:50:19 +11:00
|
|
|
readjpeg.o recurse.o rgbmask.o \
|
2022-06-29 00:14:08 +11:00
|
|
|
scale.o sobel4.o stereo.o \
|
2022-06-27 18:00:44 +11:00
|
|
|
tamppool.o tele_2.o television.o \
|
|
|
|
text0.o text1.o text16x24.o \
|
2023-09-18 07:36:08 +11:00
|
|
|
tga.o tools.o turtle.o \
|
2022-06-27 09:48:18 +11:00
|
|
|
vignetize.o \
|
2023-11-19 05:56:25 +11:00
|
|
|
warp0.o warp1.o warp2.o \
|
2022-06-27 11:19:31 +11:00
|
|
|
zoom.o
|
2022-06-27 07:55:56 +11:00
|
|
|
|
2024-08-11 20:20:04 +11:00
|
|
|
# build the static library
|
2022-06-29 02:45:30 +11:00
|
|
|
../libtthimage.a: $(OBJECTS)
|
2022-07-07 21:52:00 +11:00
|
|
|
$(AR) rs $@ $?
|
2022-06-27 09:48:18 +11:00
|
|
|
$(RANLIB) $@
|
2022-06-27 07:55:56 +11:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------
|
|
|
|
|
2022-06-29 02:45:30 +11:00
|
|
|
foo: foo.c $(DEPS) ../libtthimage.a
|
2023-09-18 07:36:08 +11:00
|
|
|
gcc $(CFLAGS) $< ../libtthimage.a -lm -o $@
|
2022-06-27 07:55:56 +11:00
|
|
|
|
2022-07-01 05:33:31 +11:00
|
|
|
t_png: t_png.c $(DEPS) ../libtthimage.a
|
|
|
|
gcc $(CFLAGS) $< ../libtthimage.a -lpng -lz -o $@
|
|
|
|
|
2022-06-29 06:28:22 +11:00
|
|
|
testbmp: testbmp.c $(DEPS) ../libtthimage.a
|
|
|
|
gcc $(CFLAGS) $< ../libtthimage.a -lm -o $@
|
|
|
|
|
2022-06-26 21:22:12 +11:00
|
|
|
#-----------------------------------------------------------------
|
|
|
|
|
2022-06-27 09:48:18 +11:00
|
|
|
essais.o: essais.c $(DEPS) essais.h
|
|
|
|
gcc $(CFLAGS) $< -c
|
|
|
|
|
2023-01-31 10:21:05 +11:00
|
|
|
testtga.o: testtga.c testtga.c $(DEPS)
|
|
|
|
gcc $(CFLAGS) $< -c
|
|
|
|
|
|
|
|
testtga: testtga.o ../libtthimage.a essais.o
|
2022-06-29 02:45:30 +11:00
|
|
|
gcc $(CFLAGS) $< essais.o ../libtthimage.a -lm -o $@
|
2022-06-26 21:22:12 +11:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------
|