Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
Makefile
12345678910111213141516171819202122232425262728293031# live/ — speech-to-singing performance core.## singer.c is the SHARED CORE: pure DSP, no audio device, no I/O. Menu Band# (AVAudioEngine) and fedac/native (ALSA) both link it and supply their own# device — the same pattern as gm_synth.c, which fedac owns and Menu Band# symlinks. main.c is only the standalone driver; each host replaces it.## make → ./singer (standalone, miniaudio)# make libsinger.a → static lib to link from Swift / fedacCC = clangCXX = clang++CFLAGS = -O3 -ffast-math -Iworld -WallCXXFLAGS= -O3 -ffast-math -IworldLDFLAGS = -lc++ -lm -lpthread \ -framework CoreAudio -framework CoreFoundation \ -framework AudioToolbox -framework AudioUnitWOBJ = $(patsubst %.cpp,%.o,$(wildcard world/*.cpp))
singer: main.o singer.o $(WOBJ) $(CXX) -O3 $^ -o $@ $(LDFLAGS)
# the embeddable core — no device, no main()libsinger.a: singer.o $(WOBJ) ar rcs $@ $^
%.o: %.c ; $(CC) $(CFLAGS) -c $< -o $@%.o: %.cpp ; $(CXX) $(CXXFLAGS) -c $< -o $@
clean: ; rm -f singer libsinger.a *.o world/*.o.PHONY: clean