Skip to content

Commit

Permalink
build: Make datatype configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Apr 6, 2020
1 parent 1d7e76e commit b39de32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
KFVER=131

DATATYPE ?= float

PREFIX ?= /usr/local
LIBDIR ?= $(PREFIX)/lib

Expand All @@ -14,7 +16,7 @@ else
endif

all:
gcc -Wall -fPIC -c *.c -Dkiss_fft_scalar=float -o kiss_fft.o
gcc -Wall -fPIC -c *.c -Dkiss_fft_scalar=$(DATATYPE) -o kiss_fft.o
ar crus libkissfft.a kiss_fft.o
gcc -shared $(SHARED_FLAGS) -o $(SHARED_NAME) kiss_fft.o

Expand Down

0 comments on commit b39de32

Please sign in to comment.