Browse Source

source tree refactor and build system (to be completed)

master
John Doe 1 year ago
parent
commit
bbc0309591
  1. 115
      .gitignore
  2. 6
      Global.makefile
  3. 88
      Makefile
  4. 25
      README.md
  5. 39
      build.sh
  6. 0
      extras/Fonderie/Makefile
  7. 0
      extras/Fonderie/README.md
  8. 0
      extras/Fonderie/craplist2h.awk
  9. 0
      extras/Fonderie/craplist2str.awk
  10. 0
      extras/Fonderie/crapulator.c
  11. 0
      extras/Fonderie/crapulator.h
  12. 0
      extras/Fonderie/crapulors.liste
  13. 0
      extras/Fonderie/essai.sh
  14. 0
      extras/Fonderie/fifo.c
  15. 0
      extras/Fonderie/fifo.h
  16. 0
      extras/Fonderie/filterstack.c
  17. 0
      extras/Fonderie/filterstack.h
  18. 0
      extras/Fonderie/fonderie.c
  19. 0
      extras/Fonderie/glitches.c
  20. 0
      extras/Fonderie/glitches.h
  21. 0
      extras/Fonderie/interpolator.c
  22. 0
      extras/Fonderie/metriques.c
  23. 0
      extras/Fonderie/metriques.h
  24. 0
      extras/Fonderie/notes.md
  25. 0
      extras/Fonderie/sfx.c
  26. 0
      extras/Fonderie/sfx.h
  27. 0
      extras/Fonderie/single.c
  28. 0
      extras/Fonderie/single.h
  29. 0
      extras/Fonderie/singlepass.c
  30. 0
      extras/Fonderie/t.c
  31. 0
      extras/essai.c
  32. 0
      extras/experiment/Makefile
  33. 0
      extras/experiment/README.md
  34. 0
      extras/experiment/assemblage.c
  35. 0
      extras/experiment/essai.sh
  36. 0
      extras/experiment/extracteur.c
  37. 0
      src/floatimg.h
  38. 20
      src/funcs/Makefile
  39. 0
      src/funcs/README.md
  40. 0
      src/funcs/alltests.sh
  41. 0
      src/funcs/classif.c
  42. 0
      src/funcs/contour2x2.c
  43. 0
      src/funcs/displacement.c
  44. 0
      src/funcs/dithering.c
  45. 0
      src/funcs/equalize.c
  46. 0
      src/funcs/exporter.c
  47. 0
      src/funcs/filtrage.c
  48. 0
      src/funcs/fimg-bmp.c
  49. 0
      src/funcs/fimg-fits.c
  50. 0
      src/funcs/fimg-libpnm.c
  51. 0
      src/funcs/fimg-openexr.c
  52. 0
      src/funcs/fimg-png.c
  53. 0
      src/funcs/fimg-tiff.c
  54. 0
      src/funcs/geometry.c
  55. 0
      src/funcs/histogram.c
  56. 0
      src/funcs/hsv.c
  57. 0
      src/funcs/incrustator.c
  58. 0
      src/funcs/misc-plots.c
  59. 0
      src/funcs/plasmas.c
  60. 0
      src/funcs/qsortrgb.c
  61. 0
      src/funcs/rampes.c
  62. 0
      src/funcs/recurse.c
  63. 0
      src/funcs/rotate.c
  64. 0
      src/funcs/saturation.c
  65. 0
      src/funcs/sfx0.c
  66. 0
      src/funcs/sfx1.c
  67. 0
      src/funcs/sfx2.c
  68. 0
      src/funcs/t.c
  69. 0
      src/funcs/tests.c
  70. 0
      src/funcs/tests.h
  71. 0
      src/funcs/tpnm.c
  72. 0
      src/funcs/utils.c
  73. 0
      src/funcs/vroum.sh
  74. 26
      src/lib/Makefile
  75. 0
      src/lib/contrast.c
  76. 0
      src/lib/fimg-2gray.c
  77. 0
      src/lib/fimg-compare.c
  78. 0
      src/lib/fimg-core.c
  79. 0
      src/lib/fimg-file.c
  80. 0
      src/lib/fimg-math.c
  81. 0
      src/lib/fimg-pnm.c
  82. 0
      src/lib/fimg-timers.c
  83. 0
      src/lib/interpolate.c
  84. 0
      src/lib/operators.c
  85. 0
      src/lib/runme.sh
  86. 0
      src/lib/t.c
  87. 81
      src/tools/Makefile
  88. 0
      src/tools/README.md
  89. 0
      src/tools/addpnm2fimg.c
  90. 0
      src/tools/addtga2fimg.c
  91. 0
      src/tools/cumulfimgs.c
  92. 0
      src/tools/fimg2fits.c
  93. 0
      src/tools/fimg2png.c
  94. 0
      src/tools/fimg2pnm.c
  95. 0
      src/tools/fimg2text.c
  96. 0
      src/tools/fimg2tiff.c
  97. 0
      src/tools/fimgfx.c
  98. 0
      src/tools/fimghalfsize.c
  99. 0
      src/tools/fimgops.c
  100. 0
      src/tools/fimgstats.c
  101. Some files were not shown because too many files have changed in this diff Show More

115
.gitignore vendored

@ -1,19 +1,18 @@ @@ -1,19 +1,18 @@
lib/*.o
lib/t
lib/*.fimg
lib/*.png
lib/*.gif
build
# src/lib/*.o
src/lib/t
src/lib/*.fimg
src/lib/*.png
src/lib/*.gif
*.o
*.a
gmon.out
*.pnm
*.fimg
essai
MANIFEST
tarball
*/*.ps
doc/*.toc
@ -26,62 +25,62 @@ doc/*.ind @@ -26,62 +25,62 @@ doc/*.ind
doc/co*.tex
doc/foo.html
funcs/t
funcs/*.o
funcs/*.png
funcs/V/*
funcs/*.gif
funcs/*.fits
funcs/*.tiff
funcs/toto
src/funcs/t
src/funcs/*.o
src/funcs/*.png
src/funcs/V/*
src/src/funcs/*.gif
src/funcs/*.fits
src/funcs/*.tiff
src/funcs/toto
scripts/*.fimg
scripts/*.pnm
scripts/*.gif
v4l2/t
v4l2/capture
v4l2/grabvidseq
v4l2/*.o
v4l2/*.ppm
v4l2/*.png
v4l2/*.fits
v4l2/*.tiff
v4l2/video-infos
v4l2/nc-camcontrol
src/v4l2/t
src/v4l2/capture
src/v4l2/grabvidseq
src/v4l2/*.o
src/v4l2/*.ppm
src/v4l2/*.png
src/v4l2/*.fits
src/v4l2/*.tiff
src/v4l2/video-infos
src/v4l2/nc-camcontrol
tools/fimg2png
tools/fimg2pnm
tools/fimg2tiff
tools/fimg2fits
tools/fimg2text
tools/fimgstats
tools/fimghalfsize
tools/mkfimg
tools/png2fimg
tools/addtga2fimg
tools/addpnm2fimg
tools/cumulfimgs
tools/fimgops
tools/fimgfx
tools/*.png
tools/*.tiff
# tools/fimg2png
# tools/fimg2pnm
# tools/fimg2tiff
# tools/fimg2fits
# tools/fimg2text
# tools/fimgstats
# tools/fimghalfsize
# tools/mkfimg
# tools/png2fimg
# tools/addtga2fimg
# tools/addpnm2fimg
# tools/cumulfimgs
# tools/fimgops
# tools/fimgfx
src/tools/*.png
src/tools/*.tiff
Fonderie/*.o
Fonderie/*.png
Fonderie/*.pnm
Fonderie/*.gif
Fonderie/*.fimg
Fonderie/fonderie
Fonderie/interpolator
Fonderie/t
Fonderie/singlepass
Fonderie/crapdef.h
Fonderie/crapstr.h
extras/Fonderie/*.o
extras/Fonderie/*.png
extras/Fonderie/*.pnm
extras/Fonderie/*.gif
extras/Fonderie/*.fimg
extras/extras/Fonderie/fonderie
extras/Fonderie/interpolator
extras/Fonderie/t
extras/Fonderie/singlepass
extras/Fonderie/crapdef.h
extras/Fonderie/crapstr.h
experiment/assemblage
experiment/extracteur
experiment/*.fimg
experiment/*.pnm
experiment/*.o
extras/experiment/assemblage
extras/experiment/extracteur
extras/experiment/*.fimg
extras/experiment/*.pnm
extras/experiment/*.o

6
Global.makefile

@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
#
# This file is the 'grandmasta' of the compilation process.
# for now, this is juste a wip idea.
#

88
Makefile

@ -1,34 +1,72 @@ @@ -1,34 +1,72 @@
####################################################
# Before running make, you must have #
# a look to the 'build.sh' script ! #
####################################################
# CC_OPTS = -Wall -fpic -g -pg -no-pie -DDEBUG_LEVEL=0
# LD_OPTS = libfloatimg.a -pg -lm
COPT = -Wall -fpic -g -pg -no-pie -DDEBUG_LEVEL=0
LDOPT = libfloatimg.a -pg -lm
LIB_DIR = build/lib
all: essai
OBJ_DIR = build/obj
#---------------------------------------------------------------
STATIC_LIB = $(LIB_DIR)/libfloatimg-lib.a
essai: essai.c libfloatimg.a floatimg.h Makefile
gcc $(COPT) $< $(LDOPT) -lpnglite -lz -o $@
DYN_LIB = $(LIB_DIR)/libfloatimg.so
#---------------------------------------------------------------
VERBOSITY = 0
TOTAR = *.[ch] Makefile *.sh *.md \
doc/the*.tex doc/mk*.sh doc/*.txt \
funcs/*.[ch] funcs/Makefile \
tools/*.[ch] tools/*.sh tools/README.md tools/Makefile \
v4l2/*.[ch] v4l2/Makefile \
scripts/*.sh scripts/README.md \
lib/*.[ch] lib/Makefile
all: lib funcs tools
lines: $(TOTAR)
@wc $(TOTAR) | sort -n
# shared: $(DYN_LIB)
tarball: $(TOTAR)
date > tarball
ls $(TOTAR) | sed 's/^/FloatImg\//' > MANIFEST
( cd .. ; tar zcvf floatimg.tar.gz `cat FloatImg/MANIFEST` )
# $(DYN_LIB): lib funcs
lib:
$(MAKE) -C src/lib all
funcs: lib
$(MAKE) -C src/funcs
# link lib & funcs for shared library
echo "int verbosity = $(VERBOSITY);" > $(OBJ_DIR)/verbosity.c
gcc -c $(OBJ_DIR)/verbosity.c -o $(OBJ_DIR)/verbosity.o
gcc -shared $(OBJ_DIR)/*.o -lnetpbm -lpnglite -lcfitsio -ltiff -lz -lm -o $(DYN_LIB)
tools:
mkdir -p build/bin
$(MAKE) -C src/tools
clean:
$(MAKE) -C src/lib clean
$(MAKE) -C src/funcs clean
$(MAKE) -C src/tools clean
rm -rf "./build"
install: all
cp src/floatimg.h /usr/local/include
cp build/lib/* /usr/local/lib
cp build/bin/* /usr/local/bin
# all: essai
# #---------------------------------------------------------------
# essai: essai.c libfloatimg.a floatimg.h Makefile
# gcc $(COPT) $< $(LDOPT) -lpnglite -lz -o $@
# #---------------------------------------------------------------
# TOTAR = *.[ch] Makefile *.sh *.md \
# doc/the*.tex doc/mk*.sh doc/*.txt \
# funcs/*.[ch] funcs/Makefile \
# tools/*.[ch] tools/*.sh tools/README.md tools/Makefile \
# v4l2/*.[ch] v4l2/Makefile \
# scripts/*.sh scripts/README.md \
# lib/*.[ch] lib/Makefile
# lines: $(TOTAR)
# @wc $(TOTAR) | sort -n
# tarball: $(TOTAR)
# date > tarball
# ls $(TOTAR) | sed 's/^/FloatImg\//' > MANIFEST
# ( cd .. ; tar zcvf floatimg.tar.gz `cat FloatImg/MANIFEST` )
# #---------------------------------------------------------------
#---------------------------------------------------------------

25
README.md

@ -1,3 +1,14 @@ @@ -1,3 +1,14 @@
# FloatImg4PythonBinding
Un fork de la galactique bibliothèque FloatImg de tTh, réaménagé pour permettre une utilisation depuis Python avec l'embryonnaire binding https://git.tetalab.org/Mutah/python-FloatImg/ (seulement sur la branche develop pour le moment)
Pas de révolution mais :
- production d'une bibliothèque partagée
- arborescence remanié : les meubles ont changés de place : les sources sont dans `src`, les expérimentations dans `extra` et les binaires sont produits dans `build`
- build system : un Makefile racine avec des cibles générales : `all` pour tout builder, `lib` pour la bibliothèque de base, `funcs`
# Traitement des images en virgule flottante.
C'est d"abord un ensemble de fonctions pour traiter des images avec une énorme dynamique
@ -30,15 +41,17 @@ Bien entendu, avant tout, il faut installer quelques outils et @@ -30,15 +41,17 @@ Bien entendu, avant tout, il faut installer quelques outils et
dépendances. Je vais tenter de les lister dans le plus grand
désordre (à la sauce Debian) :
```bash
sudo apt install libtiff-dev libpnglite-dev liblo-dev libv4l2-dev libcfitsio-dev libnetpbm-dev
```
apt install libtiff-dev
apt install libpnglite-dev
apt install liblo-dev
apt install libv4l2-dev
apt install libcfitsio-dev
apt install libnetpbm-dev
Sauce Ubuntu :
```bash
sudo apt install libtiff-dev libpnglite-dev liblo-dev libv4l-dev libcfitsio-dev libnetpbm10-dev libncurses5-dev
```
Certains outils externes sont aussi utiles :
- gnuplot

39
build.sh

@ -1,39 +0,0 @@ @@ -1,39 +0,0 @@
#!/bin/bash
# ------------------------------------------------------------------
function build
{
echo ============= $1 ==============
curdir=${PWD}
cd $1
make
error=$?
cd ${curdir}
if [ ${error} -ne 0 ]
then
echo === error on $1 = ${error}
exit 1
fi
}
# ------------------------------------------------------------------
build lib
build funcs
build tools
build v4l2
build Fonderie
# ------------------------------------------------------------------
make
# ------------------------------------------------------------------

0
Fonderie/Makefile → extras/Fonderie/Makefile

0
Fonderie/README.md → extras/Fonderie/README.md

0
Fonderie/craplist2h.awk → extras/Fonderie/craplist2h.awk

0
Fonderie/craplist2str.awk → extras/Fonderie/craplist2str.awk

0
Fonderie/crapulator.c → extras/Fonderie/crapulator.c

0
Fonderie/crapulator.h → extras/Fonderie/crapulator.h

0
Fonderie/crapulors.liste → extras/Fonderie/crapulors.liste

0
Fonderie/essai.sh → extras/Fonderie/essai.sh

0
Fonderie/fifo.c → extras/Fonderie/fifo.c

0
Fonderie/fifo.h → extras/Fonderie/fifo.h

0
Fonderie/filterstack.c → extras/Fonderie/filterstack.c

0
Fonderie/filterstack.h → extras/Fonderie/filterstack.h

0
Fonderie/fonderie.c → extras/Fonderie/fonderie.c

0
Fonderie/glitches.c → extras/Fonderie/glitches.c

0
Fonderie/glitches.h → extras/Fonderie/glitches.h

0
Fonderie/interpolator.c → extras/Fonderie/interpolator.c

0
Fonderie/metriques.c → extras/Fonderie/metriques.c

0
Fonderie/metriques.h → extras/Fonderie/metriques.h

0
Fonderie/notes.md → extras/Fonderie/notes.md

0
Fonderie/sfx.c → extras/Fonderie/sfx.c

0
Fonderie/sfx.h → extras/Fonderie/sfx.h

0
Fonderie/single.c → extras/Fonderie/single.c

0
Fonderie/single.h → extras/Fonderie/single.h

0
Fonderie/singlepass.c → extras/Fonderie/singlepass.c

0
Fonderie/t.c → extras/Fonderie/t.c

0
essai.c → extras/essai.c

0
experiment/Makefile → extras/experiment/Makefile

0
experiment/README.md → extras/experiment/README.md

0
experiment/assemblage.c → extras/experiment/assemblage.c

0
experiment/essai.sh → extras/experiment/essai.sh

0
experiment/extracteur.c → extras/experiment/extracteur.c

0
floatimg.h → src/floatimg.h

20
funcs/Makefile → src/funcs/Makefile

@ -2,8 +2,16 @@ @@ -2,8 +2,16 @@
# Please, use the 'Gloabl.makefile' system !
LIB_DIR = ../../build/lib
OBJ_DIR = ../../build/obj
STATIC_LIB = $(LIB_DIR)/libfloatimg.a
DYN_OBJ = $(OBJ_DIR)/libfloatimg-funcs.o
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
DEPS = ../floatimg.h Makefile
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
@ -14,6 +22,8 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \ @@ -14,6 +22,8 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
displacement.o dithering.o plasmas.o incrustator.o \
recurse.o
all: $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
#---------------------------------------------------------------
t: t.c $(DEPS) ../libfloatimg.a tests.o
@ -31,10 +41,16 @@ tests.o: tests.c tests.h $(DEPS) @@ -31,10 +41,16 @@ tests.o: tests.c tests.h $(DEPS)
#---------------------------------------------------------------
# upper-level functions
../libfloatimg.a: $(OBJS)
$(STATIC_LIB): $(OBJS)
$(AR) r $@ $?
# ###
$(DYN_OBJ): $(OBJS)
mkdir -p $(OBJ_DIR)
ld -Ur -o $@ $?
clean:
rm -rf $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
recurse.o: recurse.c $(DEPS)
gcc $(COPT) -c $<

0
funcs/README.md → src/funcs/README.md

0
funcs/alltests.sh → src/funcs/alltests.sh

0
funcs/classif.c → src/funcs/classif.c

0
funcs/contour2x2.c → src/funcs/contour2x2.c

0
funcs/displacement.c → src/funcs/displacement.c

0
funcs/dithering.c → src/funcs/dithering.c

0
funcs/equalize.c → src/funcs/equalize.c

0
funcs/exporter.c → src/funcs/exporter.c

0
funcs/filtrage.c → src/funcs/filtrage.c

0
funcs/fimg-bmp.c → src/funcs/fimg-bmp.c

0
funcs/fimg-fits.c → src/funcs/fimg-fits.c

0
funcs/fimg-libpnm.c → src/funcs/fimg-libpnm.c

0
funcs/fimg-openexr.c → src/funcs/fimg-openexr.c

0
funcs/fimg-png.c → src/funcs/fimg-png.c

0
funcs/fimg-tiff.c → src/funcs/fimg-tiff.c

0
funcs/geometry.c → src/funcs/geometry.c

0
funcs/histogram.c → src/funcs/histogram.c

0
funcs/hsv.c → src/funcs/hsv.c

0
funcs/incrustator.c → src/funcs/incrustator.c

0
funcs/misc-plots.c → src/funcs/misc-plots.c

0
funcs/plasmas.c → src/funcs/plasmas.c

0
funcs/qsortrgb.c → src/funcs/qsortrgb.c

0
funcs/rampes.c → src/funcs/rampes.c

0
funcs/recurse.c → src/funcs/recurse.c

0
funcs/rotate.c → src/funcs/rotate.c

0
funcs/saturation.c → src/funcs/saturation.c

0
funcs/sfx0.c → src/funcs/sfx0.c

0
funcs/sfx1.c → src/funcs/sfx1.c

0
funcs/sfx2.c → src/funcs/sfx2.c

0
funcs/t.c → src/funcs/t.c

0
funcs/tests.c → src/funcs/tests.c

0
funcs/tests.h → src/funcs/tests.h

0
funcs/tpnm.c → src/funcs/tpnm.c

0
funcs/utils.c → src/funcs/utils.c

0
funcs/vroum.sh → src/funcs/vroum.sh

26
lib/Makefile → src/lib/Makefile

@ -2,6 +2,14 @@ @@ -2,6 +2,14 @@
# building the base library
#
LIB_DIR = ../../build/lib
STATIC_LIB = $(LIB_DIR)/libfloatimg.a
OBJ_DIR = ../../build/obj
DYN_OBJ = $(OBJ_DIR)/libfloatimg-lib.o
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
@ -11,18 +19,26 @@ OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \ @@ -11,18 +19,26 @@ OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
DEPS = Makefile ../floatimg.h
# modify it 'as you like'
AR=ar
AR=ar
all: $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
all: $(OBJS) ../libfloatimg.a
# t: t.c ../libfloatimg.a $(DEPS)
# gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
t: t.c ../libfloatimg.a $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
clean:
rm -rf $(OBJS) $(STATIC_LIB) $(DYN_OBJ)
# --------------------------------------------
../libfloatimg.a: $(OBJS)
$(STATIC_LIB): $(OBJS)
mkdir -p $(LIB_DIR)
$(AR) r $@ $?
$(DYN_OBJ): $(OBJS) # verbosity.o
mkdir -p $(OBJ_DIR)
ld -Ur -o $@ $?
fimg-core.o: fimg-core.c $(DEPS)
gcc $(COPT) -c $<

0
lib/contrast.c → src/lib/contrast.c

0
lib/fimg-2gray.c → src/lib/fimg-2gray.c

0
lib/fimg-compare.c → src/lib/fimg-compare.c

0
lib/fimg-core.c → src/lib/fimg-core.c

0
lib/fimg-file.c → src/lib/fimg-file.c

0
lib/fimg-math.c → src/lib/fimg-math.c

0
lib/fimg-pnm.c → src/lib/fimg-pnm.c

0
lib/fimg-timers.c → src/lib/fimg-timers.c

0
lib/interpolate.c → src/lib/interpolate.c

0
lib/operators.c → src/lib/operators.c

0
lib/runme.sh → src/lib/runme.sh

0
lib/t.c → src/lib/t.c

81
src/tools/Makefile

@ -0,0 +1,81 @@ @@ -0,0 +1,81 @@
#
# makefile for floatimg tools
# use with caution
#
# PLEASE ! update to the 'Global.makefile' concept !
#
COPT = -Wall -fpic -g -DDEBUG_LEVEL=0
LD_OPTS = -lm
STATIC_LIB = ../../build/lib/libfloatimg.a
DEPS = ../floatimg.h $(STATIC_LIB) Makefile
BIN_DIR = ../../build/bin
EXECUTABLES = $(BIN_DIR)/fimg2pnm $(BIN_DIR)/mkfimg $(BIN_DIR)/png2fimg \
$(BIN_DIR)/fimgstats $(BIN_DIR)/fimg2png $(BIN_DIR)/fimg2tiff \
$(BIN_DIR)/fimg2text $(BIN_DIR)/fimg2fits $(BIN_DIR)/addpnm2fimg \
$(BIN_DIR)/cumulfimgs $(BIN_DIR)/fimgops $(BIN_DIR)/fimgfx \
$(BIN_DIR)/fimghalfsize
# ----------
all: fimg2pnm mkfimg png2fimg fimgstats fimg2png \
fimg2tiff fimg2text fimg2fits \
addpnm2fimg cumulfimgs fimgops fimgfx \
fimghalfsize
clean:
rm -rf $(EXECUTABLES)
fimgstats: fimgstats.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
cumulfimgs: cumulfimgs.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
mkfimg: mkfimg.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimgops: fimgops.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimgfx: fimgfx.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimghalfsize: fimghalfsize.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimg2pnm: fimg2pnm.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimg2fits: fimg2fits.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -lcfitsio -o $(BIN_DIR)/$@ $(LD_OPTS)
fimg2png: fimg2png.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -lpnglite -lz -o $(BIN_DIR)/$@ $(LD_OPTS)
fimg2text: fimg2text.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
fimg2tiff: fimg2tiff.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -ltiff -o $(BIN_DIR)/$@ $(LD_OPTS)
#
# this tool require an external library
# http://la.buvette.org/devel/libimage/libimage.html
#
addtga2fimg: addtga2fimg.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -limageSO -o $(BIN_DIR)/$@ $(LD_OPTS)
addpnm2fimg: addpnm2fimg.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -o $(BIN_DIR)/$@ $(LD_OPTS)
# if "undefined reference to crc32" then "use -lz"
png2fimg: png2fimg.c $(DEPS)
gcc $(COPT) $< $(STATIC_LIB) -lpnglite -lz -o $(BIN_DIR)/$@ $(LD_OPTS)

0
tools/README.md → src/tools/README.md

0
tools/addpnm2fimg.c → src/tools/addpnm2fimg.c

0
tools/addtga2fimg.c → src/tools/addtga2fimg.c

0
tools/cumulfimgs.c → src/tools/cumulfimgs.c

0
tools/fimg2fits.c → src/tools/fimg2fits.c

0
tools/fimg2png.c → src/tools/fimg2png.c

0
tools/fimg2pnm.c → src/tools/fimg2pnm.c

0
tools/fimg2text.c → src/tools/fimg2text.c

0
tools/fimg2tiff.c → src/tools/fimg2tiff.c

0
tools/fimgfx.c → src/tools/fimgfx.c

0
tools/fimghalfsize.c → src/tools/fimghalfsize.c

0
tools/fimgops.c → src/tools/fimgops.c

0
tools/fimgstats.c → src/tools/fimgstats.c

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save