projects
/
summerhack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mingw build
[summerhack]
/
libs
/
ogg
/
Makefile
diff --git
a/libs/ogg/Makefile
b/libs/ogg/Makefile
index
ef18894
..
f76c07d
100644
(file)
--- a/
libs/ogg/Makefile
+++ b/
libs/ogg/Makefile
@@
-1,12
+1,20
@@
-obj = bitwise.o framing.o
-
-liba = ../libogg.a
+sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/')
+ifeq ($(sys), mingw)
+ obj = bitwise.w32.o framing.w32.o
+ liba = ../w32/libogg.a
+else
+ obj = bitwise.o framing.o
+ liba = ../libogg.a
+endif
CFLAGS = -O3 -I..
$(liba): $(obj)
$(AR) rcs $@ $(obj)
CFLAGS = -O3 -I..
$(liba): $(obj)
$(AR) rcs $@ $(obj)
+%.w32.o: %.c
+ $(CC) -o $@ $(CFLAGS) -c $<
+
.PHONY: clean
clean:
rm -f $(obj) $(liba)
.PHONY: clean
clean:
rm -f $(obj) $(liba)