2021-10-28 00:46:36 -03:00
|
|
|
# Compile with MinGW.
|
|
|
|
# You can call this makefile with:
|
|
|
|
# make PDDIR=<path/to/pd>
|
|
|
|
# or you can specify it below:
|
|
|
|
|
2021-10-28 02:47:08 -03:00
|
|
|
PDDIR=../build/Release64/.pd/
|
2021-10-28 00:46:36 -03:00
|
|
|
|
|
|
|
WINARCH := $(shell $(CC) -dumpmachine)
|
|
|
|
|
2022-10-04 06:09:02 -03:00
|
|
|
ifneq (,$(findstring i686,$(WINARCH)))
|
2021-10-28 00:46:36 -03:00
|
|
|
arch = 32
|
|
|
|
else
|
|
|
|
arch = 64
|
|
|
|
endif
|
|
|
|
|
|
|
|
ALL: vstschedlib.c
|
|
|
|
gcc -Wall -I$(PDDIR)src -I../vst-template vstschedlib.c -static-libgcc \
|
|
|
|
-shared -L$(PDDIR)bin -l:pd.dll -o vstschedlib.dll
|
|
|
|
strip vstschedlib.dll
|
2024-04-21 07:16:06 -03:00
|
|
|
#cp vstschedlib.dll ../build/pd-scheduler$(arch)/vstschedlib.dll
|
|
|
|
cp vstschedlib.dll ../build/Release$(arch)/.pd/bin/vstschedlib.dll
|