--- /dev/null
+/* dft.c - discrete fourier transformation program */
+
+/*
+ * author: frank.zirkelbach@physik.uni-augsburg.de
+ *
+ */
+
+#include "dft.h"
+
+int main(int argc,char **argv) {
+
+ t_fourier fourier;
+ t_bmp src;
+ t_bmp dst;
+
+ bmp_init(&src,1);
+ bmp_init(&dst,1);
+ src.mode=READ;
+ dst.mode=WRITE;
+ strcpy(src.file,argv[1]);
+ strcpy(dst.file,argv[2]);
+
+ bmp_read_file(&src);
+
+ dst.width=src.info.width;
+ dst.height=src.info.height;
+ bmp_alloc_map(&dst);
+
+ /* simple copy for testing by now ! */
+ memcpy(dst.map,src.map,src.info.imagesize);
+
+ bmp_write_file(&dst);
+
+ bmp_shutdown(&src);
+ bmp_shutdown(&dst);
+
+ printf("done ...\n");
+
+ return 1;
+
+}
--- /dev/null
+# Makefile of dft
+
+INCLUDEDIR = /usr/include
+
+CFLAGS = -O3 -Wall
+LIBS = -lncurses -lm
+
+OBJS = network.o event.o input.o display.o audio.o fourier.o bmp.o
+
+dft: links $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $(OBJS) dft.c $(LIBS)
+all: links dft
+
+clean:
+ rm -f $(OBJS) ivac
+
+links:
+ ln -sf ../../api/event/event.{c,h} .
+ ln -sf ../../api/input/input.{c,h} .
+ ln -sf ../../api/display/display.{c,h} .
+ ln -sf ../../api/audio/audio.{c,h} .
+ ln -sf ../../api/network/network.{c,h} .
+ ln -sf ../../api/list/list.{c,h} .
+ ln -sf ../../api/fourier/fourier.{c,h} .
+ ln -sf ../../api/bmp/bmp.{c,h} .
+
+remake: clean all