Browse Source

* Makefile

master
Alex 'AdUser' Z 10 years ago
parent
commit
a6e91bf63f
  1. 4
      src/Makefile
  2. 15
      src/sampler-test.c

4
src/Makefile

@ -28,6 +28,10 @@ utils: util util-static
imdb_1to2: imdb_1to2.c imdb_1to2: imdb_1to2.c
gcc $(CFLAGS) $(CPPFLAGS) -o $@ $^ gcc $(CFLAGS) $(CPPFLAGS) -o $@ $^
FLAGS=$(shell GraphicsMagickWand-config --cppflags --ldflags --libs)
sampler-test: sampler.c sampler-test.c
gcc $(CFLAGS) $(CPPFLAGS) $(FLAGS) -o $@ $^
clean: clean:
rm -f *.o rm -f *.o
rm -f imdb_?to? rm -f imdb_?to?

15
src/sampler-test.c

@ -0,0 +1,15 @@
#include "common.h"
#include "database.h"
#include "sampler.h"
int main(int argc, char **argv)
{
char * const source = "sample.png";
imdb_rec_t rec;
int ret = 0;
memset(&rec, 0x0, sizeof(imdb_rec_t));
ret = imdb_sample(&rec, source);
exit(ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
Loading…
Cancel
Save