7
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
1 CFLAGS += -I.
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
2
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
3 OBJS = peck_fft.o peck_fftr.o
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
5 all: libpeck_fft.a
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
6
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
7 libpeck_fft.a: $(OBJS)
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
8 $(AR) ruv $@ $(OBJS)
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
9
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
10 clean:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
11 rm -f *.o *.a peck_test
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
12
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
13 peck_test: peck_test.o
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
14 $(CC) -o $@ peck_test.o -L. -lpeck_fft -lm
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
15
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
16 test: peck_test
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
17 ./peck_test
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
18
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
19 install: libpeck_fft.a
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
20 mkdir -p $(DESTDIR)/usr/lib
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
21 mkdir -p $(DESTDIR)/usr/include
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
22 cp libpeck_fft.a $(DESTDIR)/usr/lib
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
23 cp peck_fft.h peck_fftr.h _peck_fft_guts.h $(DESTDIR)/usr/include
|