Browse Source

hop hop hop le système de cache

master
tth 10 months ago
parent
commit
0e79b3e8fa
  1. 2
      .gitignore
  2. 19
      experiment/Makefile
  3. 18
      experiment/cachengn.c
  4. 5
      experiment/cachengn.h
  5. 18
      experiment/tcache.c

2
.gitignore vendored

@ -86,4 +86,6 @@ experiment/*.pnm @@ -86,4 +86,6 @@ experiment/*.pnm
experiment/*.o
experiment/muxplanes
experiment/movepixels
experiment/tcache

19
experiment/Makefile

@ -5,10 +5,12 @@ @@ -5,10 +5,12 @@
COPT = -Wall -fpic -g -DDEBUG_LEVEL=1 -lm
DEPS = ../floatimg.h ../libfloatimg.a Makefile
LIBS = -ltiff -lpnglite -lcfitsio
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio
all: assemblage extracteur muxplanes movepixels
# ---------------------------------------------------------
assemblage: assemblage.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
@ -16,7 +18,20 @@ extracteur: extracteur.c ${DEPS} @@ -16,7 +18,20 @@ extracteur: extracteur.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
muxplanes: muxplanes.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
gcc $(COPT) $< ${LIBS} -o $@
movepixels: movepixels.c ${DEPS}
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
# ---------------------------------------------------------
# CACHE ENGINE
cachengn.o: cachengn.c cachengn.h Makefile
gcc $(COPT) -c $<
tcache.o: tcache.c cachengn.h Makefile
gcc $(COPT) -c $<
tcache: tcache.o cachengn.o Makefile
gcc $(COPT) tcache.o cachengn.o $(LIBS) -o $@

18
experiment/cachengn.c

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
/*
* the chache engine - code
*/
#include <stdio.h>
#include "cachengn.h"
/* ------------------------------------------------------------ */
void cachengn_print_version(int k)
{
printf("this is the version ZERO !!!\n");
}
/* ------------------------------------------------------------ */

5
experiment/cachengn.h

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
/*
* the chache engine - header
*/
void cachengn_print_version(int k);

18
experiment/tcache.c

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
/*
* tests du systeme de cache
*/
#include <stdio.h>
#include "cachengn.h"
/* ------------------------------------------------------------ */
int main(int argc, char *argv[])
{
fprintf(stderr, "Test of the cache engin - %s %s\n", __DATE__, __TIME__);
return 0;
}
/* ------------------------------------------------------------ */
Loading…
Cancel
Save