diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/configure.in | 13 | ||||
-rw-r--r-- | src/makefile.in | 10 |
2 files changed, 17 insertions, 6 deletions
diff --git a/src/configure.in b/src/configure.in index a80ea58..a2cbd49 100644 --- a/src/configure.in +++ b/src/configure.in @@ -12,6 +12,7 @@ AC_SUBST(LD) AC_SUBST(STRIPFLAGS) AC_SUBST(ZEXY_VERSION) AC_SUBST(REFERENCEPATH) +AC_SUBST(PDLIBDIR) AC_SUBST(INCLUDES) AC_SUBST(SOURCES) @@ -81,7 +82,17 @@ then enable_lpt="no"; fi fi - +if test `uname | sed -e 's/^MINGW.*/NT/'` = NT; +then + LD=gcc + INCLUDES="-I@prefix@/src" + DFLAGS="-DMSW -DNT" + LFLAGS="-shared @prefix@/bin/pd.dll" + EXT=dll +else + PDLIBDIR="/lib/pd" + LIBS="-lc -lm" +fi if test `uname -s` = IRIX64; then LFLAGS="-n32 -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \ diff --git a/src/makefile.in b/src/makefile.in index 0f873eb..3d35df6 100644 --- a/src/makefile.in +++ b/src/makefile.in @@ -1,10 +1,10 @@ LIBNAME =zexy PREFIX =@prefix@ -PDLIBDIR =lib/pd -INSTALLDOCS=@REFERENCEPATH@$LIBNAME +PDLIBDIR =@PDLIBDIR@ +INSTALLDOCS=@REFERENCEPATH@$(LIBNAME) -INSTALL_BIN=$(PREFIX)/$(PDLIBDIR)/extra -INSTALL_DOC=$(PREFIX)/$(PDLIBDIR)/$(INSTALLDOCS) +INSTALL_BIN=$(PREFIX)$(PDLIBDIR)/extra +INSTALL_DOC=$(PREFIX)$(PDLIBDIR)/$(INSTALLDOCS) EXT = @EXT@ DEFS = @DFLAGS@ @@ -23,7 +23,7 @@ TARNAME = $(LIBNAME)-@ZEXY_VERSION@.tgz PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -LIBS = -lc -lm +LIBS = @LIBS@ #LIBS = -lpthread -lm -lc include make.source TARGETS = $(SOURCES:.c=.o) |