|
@@ -210,21 +210,21 @@ OBJECTS += $(libpd) |
|
|
DEPS += $(libpd) |
|
|
DEPS += $(libpd) |
|
|
FLAGS += -Idep/include/libpd -DHAVE_LIBDL |
|
|
FLAGS += -Idep/include/libpd -DHAVE_LIBDL |
|
|
|
|
|
|
|
|
|
|
|
$(libpd): |
|
|
|
|
|
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive |
|
|
|
|
|
cd dep/libpd && git checkout 5772a612527f06597d44d195843307ad0e3578fe |
|
|
|
|
|
|
|
|
ifdef ARCH_WIN |
|
|
ifdef ARCH_WIN |
|
|
# PD_INTERNAL leaves the function declarations for libpd unchanged |
|
|
# PD_INTERNAL leaves the function declarations for libpd unchanged |
|
|
# not specifying that flag would enable the "EXTERN __declspec(dllexport) extern" macro |
|
|
# not specifying that flag would enable the "EXTERN __declspec(dllexport) extern" macro |
|
|
# which throws a linker error. I guess this macro should only be used for the windows |
|
|
# which throws a linker error. I guess this macro should only be used for the windows |
|
|
# specific .dll dynamic linking format. |
|
|
# specific .dll dynamic linking format. |
|
|
# The corresponding #define resides in "m_pd.h" inside th Pure Data sources |
|
|
# The corresponding #define resides in "m_pd.h" inside th Pure Data sources |
|
|
FLAGS += -DPD_INTERNAL |
|
|
|
|
|
|
|
|
FLAGS += -DPD_INTERNAL -Ofast |
|
|
LDFLAGS += -Wl,--export-all-symbols |
|
|
LDFLAGS += -Wl,--export-all-symbols |
|
|
LDFLAGS += -lws2_32 |
|
|
LDFLAGS += -lws2_32 |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
$(libpd): |
|
|
|
|
|
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive |
|
|
|
|
|
cd dep/libpd && git checkout 551f7512e8f934ea8e2a20af9467581a5825b9cd |
|
|
|
|
|
|
|
|
|
|
|
ifdef ARCH_MAC |
|
|
ifdef ARCH_MAC |
|
|
# libpd's Makefile is handmade, and it doesn't honor CFLAGS and LDFLAGS environments. |
|
|
# libpd's Makefile is handmade, and it doesn't honor CFLAGS and LDFLAGS environments. |
|
|
# So in order for Mac 10.15 (for example) to make a build that works on Mac 10.7+, we have to manually add DEP_MAC_SDK_FLAGS to CFLAGS and LDFLAGS. |
|
|
# So in order for Mac 10.15 (for example) to make a build that works on Mac 10.7+, we have to manually add DEP_MAC_SDK_FLAGS to CFLAGS and LDFLAGS. |
|
|