Paul Batchelorimporta901d566 years agoHistory
93 lines · 1.7 KB · Makefile
RawDownload
.PHONY: all clean install docs bootstrap util default: all VERSION = 2.0.0 PREFIX ?= /usr/local LIBSOUNDPIPE = libsoundpipe.a ifndef CONFIGCONFIG = config.mkendif HPATHS += $(addprefix h/, $(addsuffix .h, $(MODULES)))MPATHS += $(addprefix modules/, $(addsuffix .o, $(MODULES))) include $(CONFIG) ifeq ($(USE_DOUBLE), 1)CFLAGS+=-DUSE_DOUBLESPFLOAT=doubleelseSPFLOAT=floatendif CFLAGS += -DSP_VERSION=$(VERSION) -O3 -DSPFLOAT=${SPFLOAT}CFLAGS += -Ih -I/usr/local/include -fPICCFLAGS += -I.CFLAGS += -Wall -pedanticUTIL += util/wav2smp C89=$(CC) -std=c89C99=$(CC) -std=c99 libsoundpipe.a: $(MPATHS) $(LPATHS) $(TANGLED)	@echo "Creating $@"	@$(AR) rcs $@ $(MPATHS) $(LPATHS) $(TANGLED) h/soundpipe.h: $(HPATHS)	echo "#ifndef SOUNDPIPE_H" > $@ifdef USE_DOUBLE	echo "#define USE_DOUBLE" >> $@endif	echo "#define SOUNDPIPE_H" >> $@	cat $(HPATHS) >> $@	echo "#endif" >> $@ h/sp_base.h: h/base.h	>$@	echo "#ifndef SOUNDPIPE_H" >> $@ifdef USE_DOUBLE	echo "#define USE_DOUBLE" >> $@endif	echo "#define SOUNDPIPE_H" >> $@	cat $< >> $@	echo "#endif" >> $@ modules/%.o: modules/%.c h/soundpipe.h	$(C89) $(CFLAGS) -c -static $< -o $@ tangled/%.o: %.c h/soundpipe.h	$(C89) $(CFLAGS) -c -static $< -o $@ config.mk: config.def.mk	cp $< $@ sp_dict.lua:	cat modules/data/*.lua > $@ docs:	util/gendocs.sh all: config.mk libsoundpipe.a sp_dict.lua h/sp_base.h install: \	h/soundpipe.h \	h/sp_base.h \	libsoundpipe.a	install h/soundpipe.h /usr/local/include/	install h/sp_base.h /usr/local/include/	install libsoundpipe.a /usr/local/lib/ clean:	$(RM) h/soundpipe.h	$(RM) -r docs	$(RM) libsoundpipe.a	$(RM) soundpipe.c	$(RM) sp_dict.lua	$(RM) $(LPATHS)	$(RM) $(MPATHS)	$(RM) $(TANGLED)	$(RM) h/sp_base.h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t