Skip to content

Commit

Permalink
Streamline the Windows/mingw build rule to simplify in-tree builds wh…
Browse files Browse the repository at this point in the history
…ere pd.dll may be in a different subdirectory of .
  • Loading branch information
agraef committed Mar 13, 2018
1 parent d411a81 commit 1fd7830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -263,6 +263,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
# version compiled against vanilla will also work with Purr Data, though.)
PD_PATH = $(wildcard /c/Program*/Pd)
PD_INCLUDE = $(PD_PATH)/src
PD_LIB = $(PD_PATH)/bin
# Install into the extra subdir of the program directory. Note that at least
# on the latest Windows versions you can't install directly there
# (permissions issue) so you'll have to install into a staging directory
Expand All @@ -274,7 +275,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
ALL_CFLAGS += -mms-bitfields
ALL_LDFLAGS += -s -shared -Wl,--enable-auto-import
SHARED_LDFLAGS += -shared
ALL_LIBS += "$(PD_PATH)/bin/pd.dll" \
ALL_LIBS += "$(PD_LIB)/pd.dll" \
-lwsock32 -lkernel32 -luser32 -lgdi32 $(LIBS_windows)
STRIP = strip --strip-unneeded -R .note -R .comment
DISTBINDIR=$(DISTDIR)-$(OS)
Expand Down

0 comments on commit 1fd7830

Please sign in to comment.