projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exhibit ui improvements, and exhibit repositioning fix
[laserbrain_demo]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2c38091
..
370828e
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-10,7
+10,7
@@
obj = $(src:.cc=.o) $(csrc:.c=.o)
dep = $(obj:.o=.d)
bin = demo
dep = $(obj:.o=.d)
bin = demo
-#opt = -O3 -ffast-math
+opt = -O3 -ffast-math
dbg = -g
incpath = -Isrc -Isrc/machine -I/usr/local/include `pkg-config --cflags sdl2`
dbg = -g
incpath = -Isrc -Isrc/machine -I/usr/local/include `pkg-config --cflags sdl2`
@@
-35,6
+35,9
@@
libal_Darwin = -framework OpenAL
libal_mingw = -lopenal
ifeq ($(sys), mingw)
libal_mingw = -lopenal
ifeq ($(sys), mingw)
+ obj = $(src:.cc=.w32.o) $(csrc:.c=.w32.o)
+ dep = $(obj:.o=.d)
+
bin = demo.exe
LDFLAGS += -lmingw32 -lSDL2main -lSDL2 -lwinmm -mwindows
#CFLAGS += -DGLEW_STATIC
bin = demo.exe
LDFLAGS += -lmingw32 -lSDL2main -lSDL2 -lwinmm -mwindows
#CFLAGS += -DGLEW_STATIC
@@
-48,9
+51,15
@@
$(bin): .clang_complete $(obj)
cross:
$(MAKE) CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ sys=mingw
cross:
$(MAKE) CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ sys=mingw
+.PHONY: cross-clean
+cross-clean:
+ $(MAKE) CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ sys=mingw clean
+
.PHONY: instalien
instalien: demo.exe
cp $< /alien/demo/$<
.PHONY: instalien
instalien: demo.exe
cp $< /alien/demo/$<
+ mkdir -p /alien/demo/sdr && cp sdr/* /alien/demo/sdr/
+ for i in `tools/dlldepends | grep -v '++'`; do echo $$i; rsync $$i /alien/demo; done
.clang_complete: Makefile
rm -f $@
.clang_complete: Makefile
rm -f $@
@@
-64,6
+73,12
@@
instalien: demo.exe
%.d: %.cc
@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
%.d: %.cc
@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
+%.w32.o: %.c
+ $(CC) -o $@ $(CFLAGS) -c $<
+
+%.w32.o: %.cc
+ $(CC) -o $@ $(CXXFLAGS) -c $<
+
.PHONY: clean
clean:
rm -f $(obj) $(bin)
.PHONY: clean
clean:
rm -f $(obj) $(bin)