From d7b16f7f0740b0002317e1882a967787a4815b64 Mon Sep 17 00:00:00 2001 From: clwe Date: Mon, 20 Sep 2021 13:03:22 +0200 Subject: [PATCH] LibPDEngine: correct Makefile flag command order for windows --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d363dec..c1e56bb 100644 --- a/Makefile +++ b/Makefile @@ -210,10 +210,6 @@ OBJECTS += $(libpd) DEPS += $(libpd) 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 # PD_INTERNAL leaves the function declarations for libpd unchanged # not specifying that flag would enable the "EXTERN __declspec(dllexport) extern" macro @@ -225,6 +221,10 @@ ifdef ARCH_WIN LDFLAGS += -lws2_32 endif +$(libpd): + cd dep && git clone "https://github.com/libpd/libpd.git" --recursive + cd dep/libpd && git checkout 5772a612527f06597d44d195843307ad0e3578fe + ifdef ARCH_MAC # 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.