aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 05:02:14 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 05:02:14 +0000
commita7e9800fae89ff6c4f0dc3d0072e80b54ecb8be5 (patch)
tree29f6e1a8ff2d5ff0c51194db9e8b7cbaafc5a4d0
parente25d5704471cb7daef1dd15513e136c2acde7453 (diff)
removed sfread.c from build since it doesn't seem to work; fixed up Windows build; moved LIBRARY_NAME build to a better location
svn path=/trunk/externals/ext13/; revision=11682
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 3ae8f5b..f5b25f9 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# source files to the SOURCES variable. For objects that only build on
# certain platforms, add those to the SOURCES line for the right platforms.
-SOURCES = catch13~.c filesize.c ftos.c kalashnikov.c mandelbrot~.c mandelbrot.c messages.c openpatch.c ossmixer.c piperead~.c pipewrite~.c receive13~.c receive13.c scramble~.c send13~.c send13.c sfread.c sfwrite13~.c streamin13~.c streamout13~.c strippath.c throw13~.c wavinfo.c
+SOURCES = catch13~.c filesize.c ftos.c kalashnikov.c mandelbrot~.c mandelbrot.c messages.c openpatch.c piperead~.c pipewrite~.c receive13~.c receive13.c scramble~.c send13~.c send13.c sfwrite13~.c streamin13~.c streamout13~.c strippath.c throw13~.c wavinfo.c
LIBRARY_NAME = $(shell basename $(PWD))
@@ -39,7 +39,8 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
EXTENSION = dll
OS = windows
OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4
- CFLAGS += -mms-bitfields
+ WINDOWS_HACKS = -D'O_NONBLOCK=1'
+ CFLAGS += -mms-bitfields $(WINDOWS_HACKS)
LDFLAGS += -s -shared
LIBS += -L$(pd_src)/bin -L$(pd_src)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32
STRIP = strip --strip-unneeded -R .note -R .comment
@@ -51,12 +52,6 @@ CFLAGS += $(OPT_CFLAGS)
all: $(SOURCES:.c=.$(EXTENSION))
-$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
- $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS)
- chmod a-x $(LIBRARY_NAME).$(EXTENSION)
- $(STRIP) $(LIBRARY_NAME).$(EXTENSION)
- rm -f -- $*.o
-
%.o: %.c
$(CC) $(CFLAGS) -o "$*.o" -c "$*.c"
@@ -66,6 +61,12 @@ $(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
$(STRIP) $*.$(EXTENSION)
rm -f -- $*.o
+$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
+ $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS)
+ chmod a-x $(LIBRARY_NAME).$(EXTENSION)
+ $(STRIP) $(LIBRARY_NAME).$(EXTENSION)
+ rm -f -- $*.o
+
clean:
-rm -f -- $(SOURCES:.c=.o)