2015-01-07 04:51:39 +01:00
|
|
|
all : colorchord
|
|
|
|
|
|
|
|
RAWDRAW:=DrawFunctions.o XDriver.o
|
|
|
|
SOUND:=sound.o sound_alsa.o sound_pulse.o sound_null.o
|
2015-04-01 06:21:01 +02:00
|
|
|
OUTS := OutputVoronoi.o DisplayArray.o OutputLinear.o DisplayPie.o DisplayNetwork.o DisplayUSB2812.o DisplayDMX.o OutputProminent.o
|
2015-01-10 07:44:13 +01:00
|
|
|
|
2015-01-17 23:39:49 +01:00
|
|
|
WINGCC:=i586-mingw32msvc-gcc
|
2015-04-01 06:21:01 +02:00
|
|
|
WINGCCFLAGS:= -O2 -Wl,--relax -Wl,--gc-sections -ffunction-sections -fdata-sections -s
|
2015-02-10 06:57:10 +01:00
|
|
|
WINLDFLAGS:=-lwinmm -lgdi32 -lws2_32
|
2015-01-10 07:44:13 +01:00
|
|
|
|
2015-01-07 04:51:39 +01:00
|
|
|
RAWDRAWLIBS:=-lX11 -lm -lpthread -lXinerama -lXext
|
|
|
|
LDLIBS:=-lpthread -lasound -lm -lpulse-simple -lpulse
|
2015-04-01 06:21:01 +02:00
|
|
|
CFLAGS:=-g -Os -flto -Wall
|
2015-01-07 04:51:39 +01:00
|
|
|
EXTRALIBS:=-lusb-1.0
|
|
|
|
|
2015-04-03 20:10:25 +02:00
|
|
|
colorchord : os_generic.o main.o dft.o decompose.o filter.o color.o sort.o notefinder.o util.o outdrivers.o $(RAWDRAW) $(SOUND) $(OUTS) parameters.o chash.o DFT32.o
|
2015-01-07 04:51:39 +01:00
|
|
|
gcc -o $@ $^ $(CFLAGS) $(LDLIBS) $(EXTRALIBS) $(RAWDRAWLIBS)
|
|
|
|
|
2015-04-03 20:10:25 +02:00
|
|
|
colorchord.exe : os_generic.c main.c dft.c decompose.c filter.c color.c sort.c notefinder.c util.c outdrivers.c DrawFunctions.c parameters.c chash.c WinDriver.c sound.c sound_null.c sound_win.c OutputVoronoi.c DisplayArray.c OutputLinear.c DisplayPie.c DisplayNetwork.c DFT32.c
|
2015-02-10 06:57:10 +01:00
|
|
|
$(WINGCC) $(WINGCCFLAGS) -o $@ $^ $(WINLDFLAGS)
|
2015-01-17 23:39:49 +01:00
|
|
|
|
2015-01-07 04:51:39 +01:00
|
|
|
|
|
|
|
clean :
|
2015-04-01 06:21:01 +02:00
|
|
|
rm -rf *.o *~ colorchord colorchord.exe embeddedcc
|