diff Makefile @ 7:707be088ccc3

build
author Peter Meerwald <p.meerwald@bct-electronic.com>
date Mon, 19 Sep 2011 17:39:53 +0200
parents
children f2d3b39267ee
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Mon Sep 19 17:39:53 2011 +0200
@@ -0,0 +1,23 @@
+CFLAGS += -I.
+
+OBJS = peck_fft.o peck_fftr.o
+
+all: libpeck_fft.a
+
+libpeck_fft.a: $(OBJS)
+	$(AR) ruv $@ $(OBJS)
+
+clean:
+	rm -f *.o *.a peck_test
+
+peck_test: peck_test.o
+	$(CC) -o $@ peck_test.o -L. -lpeck_fft -lm
+
+test: peck_test
+	./peck_test
+
+install: libpeck_fft.a
+	mkdir -p $(DESTDIR)/usr/lib
+	mkdir -p $(DESTDIR)/usr/include
+	cp libpeck_fft.a $(DESTDIR)/usr/lib
+	cp peck_fft.h peck_fftr.h _peck_fft_guts.h $(DESTDIR)/usr/include

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.