fixed nlsop for packaging ..
[physik/nlsop.git] / makefile
1 # Makefile of dft
2
3 INCLUDEDIR = /usr/include
4
5 CFLAGS = -O3 -Wall
6 LIBS = -lncurses -lm -lfftw3
7
8 OBJS = network.o event.o input.o display.o fourier.o bmp.o
9
10 dft: links $(OBJS)
11         $(CC) $(CFLAGS) -o $@ $(OBJS) dft.c $(LIBS)
12
13 linescan: links $(OBJS)
14         $(CC) $(CFLAGS) -o $@ $(OBJS) linescan.c $(LIBS)
15
16 nlsop_make_cryst: links $(OBJS)
17         $(CC) $(CFLAGS) -o $@ $(OBJS) nlsop_make_cryst.c $(LIBS)
18
19 nlsop_create_cbox: links $(OBJS)
20         $(CC) $(CFLAGS) -o $@ $(OBJS) nlsop_create_cbox.c $(LIBS)
21
22 3dplot: links $(OBJS)
23         $(CC) $(CFLAGS) -o $@ $(OBJS) 3dplot.c $(LIBS)
24
25 all: links dft linescan 3dplot
26
27 clean:
28         rm -f $(OBJS) ivac
29
30 links:
31         ln -sf ../api/event/event.{c,h} .
32         ln -sf ../api/input/input.{c,h} .
33         ln -sf ../api/display/display.{c,h} .
34         ln -sf ../api/network/network.{c,h} .
35         ln -sf ../api/list/list.{c,h} .
36         ln -sf ../api/fourier/fourier.{c,h} .
37         ln -sf ../api/bmp/bmp.{c,h} .
38
39 remake: clean all