Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Makefile.linux_shared + .linux for existing examples
== usage example = compile libofw_*.so (this step only once) cd libs/libofw make -f Makefile.shared_core Release make -f Makefile.shared_coreaddons Release make -f Makefile.shared_msaaddons Release = compile examples cd apps/addonsExamples/3DModelLoaderExample make -f Makefile.linux_shared Release # (Debug|Release|copy_libs) cd bin; ./3DModelLoaderExample.sh = to move finished app, remember to run 'copy_libs' which moves = depended libs to your ./bin directory make -f Makefile.linux_shared copy_libs ls bin/lib/*
- Loading branch information
Showing
86 changed files
with
18,600 additions
and
0 deletions.
There are no files selected for viewing
371 changes: 371 additions & 0 deletions
371
apps/addonsExamples/3DModelLoaderExample/Makefile.linux
Large diffs are not rendered by default.
Oops, something went wrong.
108 changes: 108 additions & 0 deletions
108
apps/addonsExamples/3DModelLoaderExample/Makefile.linux_shared
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Makefile.linux_shared | ||
|
||
APP_NAME = 3DModelLoaderExample | ||
OF_LIBS_PATH = ../../../libs | ||
OF_ADDONS_PATH = ../../../addons | ||
|
||
CC = gcc | ||
PROJECT_DIR = ./ | ||
CFLAGS += -Wall -fexceptions | ||
#= CFLAGS += -I$(OF_LIBS_PATH)/libofw/include | ||
|
||
#= libofw cflags | ||
CFLAGS += -I$(OF_LIBS_PATH)/openFrameworks/ -I$(OF_LIBS_PATH)/openFrameworks/events -I$(OF_LIBS_PATH)/openFrameworks/app -I$(OF_LIBS_PATH)/openFrameworks/communication -I$(OF_LIBS_PATH)/openFrameworks/graphics -I$(OF_LIBS_PATH)/openFrameworks/video -I$(OF_LIBS_PATH)/openFrameworks/utils -I$(OF_LIBS_PATH)/openFrameworks/sound -I$(OF_LIBS_PATH)/rtAudio/include -I$(OF_LIBS_PATH)/fmodex/inc -I$(OF_LIBS_PATH)/GLee/include -I$(OF_LIBS_PATH)/GLee/ -I$(OF_LIBS_PATH)/freeimage/include -I$(OF_LIBS_PATH)/freeimage -I$(OF_LIBS_PATH)/alsa/include -I$(OF_LIBS_PATH)/alsa/include/alsa -I$(OF_LIBS_PATH)/freetype/include/linux -I$(OF_LIBS_PATH)/freetype/include/linux/freetype2 -I$(OF_LIBS_PATH)/unicap/include -I$(OF_LIBS_PATH)/gstappsink/include -I../../../addons -I$(OF_LIBS_PATH)/poco/include | ||
|
||
#= libofw_coreaddons cflags | ||
CFLAGS += -I$(OF_ADDONS_PATH) -I$(OF_ADDONS_PATH)/ofxDirList/src -I$(OF_ADDONS_PATH)/ofxNetwork/src -I$(OF_ADDONS_PATH)/ofxOpenCv/src -I$(OF_ADDONS_PATH)/ofxOpenCv/libs/opencv/include -I$(OF_ADDONS_PATH)/ofxOsc/src -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/ip -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/osc -I$(OF_ADDONS_PATH)/ofxThread/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/libs -I$(OF_ADDONS_PATH)/ofxVectorMath/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/libs -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src/3DS | ||
|
||
CFLAGS +=`pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libavcodec libavformat libavutil libswscale --cflags` | ||
LDFLAGS += -L$(OF_LIBS_PATH)/libofw/lib -L$(OF_LIBS_PATH)/fmodex/lib/linux -L$(OF_LIBS_PATH)/unicap/lib -L$(OF_LIBS_PATH)/poco/lib/linux | ||
|
||
#= libofw libs | ||
LIBS += -lofw -lofw_coreaddons -lfmodex -lraw1394 -lglut -lGL -lGLU -lXxf86vm -lasound -lPocoFoundation -lunicap | ||
CFLAGS += -DLINUX | ||
|
||
OBJS = src/main.o src/testApp.o | ||
|
||
Debug: TARGET_NAME = Debug | ||
Debug: OBJ_OUTPUT = build/Debug/ | ||
Debug: OUTPUT = bin/$(APP_NAME)_debug | ||
Debug: TARGET_OUTPUT_BASENAME = $(APP_NAME)_debug | ||
Debug: CC = gcc | ||
Debug: CFLAGS += -g -MMD | ||
|
||
OBJS_Debug = $(addprefix build/Debug/, $(OBJS) ) | ||
|
||
Release: TARGET_NAME = Release | ||
Release: OBJ_OUTPUT = build/Release/ | ||
Release: OUTPUT = bin/$(APP_NAME) | ||
Release: TARGET_OUTPUT_BASENAME = $(APP_NAME) | ||
Release: CC = gcc | ||
Release: CFLAGS += -O3 -MMD | ||
Release: LDFLAGS += -s | ||
|
||
OBJS_Release = $(addprefix build/Release/, $(OBJS) ) | ||
|
||
.PHONY: after | ||
|
||
Debug: bin/$(APP_NAME)_debug after | ||
Release: bin/$(APP_NAME) after | ||
bin/$(APP_NAME)_debug: $(OBJS_Debug) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Debug) $(LIBS) | ||
|
||
bin/$(APP_NAME): $(OBJS_Release) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Release) $(LIBS) | ||
|
||
copy_libs: | ||
# copy libs to bin/libs directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodex.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodexp.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw.so $(PROJECT_DIR)bin/libs/libofw.so | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw_coreaddons.so $(PROJECT_DIR)bin/libs/libofw_coreaddons.so | ||
# ok | ||
|
||
after: | ||
# copy shell script to bin directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp ../../../other/codeblocks/linux_clickToLaunchApp2.sh $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
sed -i s/applicationName/$(TARGET_OUTPUT_BASENAME)/g $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
# ok | ||
|
||
build/Debug/src/main.o build/Release/src/main.o: src/main.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/main.o $(CFLAGS) | ||
build/Debug/src/testApp.o build/Release/src/testApp.o: src/testApp.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/testApp.o $(CFLAGS) | ||
|
||
clean: | ||
-rm $(OBJS_Debug) $(OBJS_Release) | ||
|
||
ifneq ($MAKECMDGOALS,clean) | ||
|
||
build/Debug/src/main.dep: src/main.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/main.o $(CFLAGS) src/main.cpp -MF build/Debug/src/main.dep | ||
-include build/Debug/src/main.dep | ||
|
||
build/Debug/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Debug/src/testApp.dep | ||
-include build/Debug/src/testApp.dep | ||
|
||
build/Release/src/main.dep: src/main.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/main.o $(CFLAGS) src/main.cpp -MF build/Release/src/main.dep | ||
-include build/Release/src/main.dep | ||
|
||
build/Release/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Release/src/testApp.dep | ||
-include build/Release/src/testApp.dep | ||
|
||
endif |
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
apps/addonsExamples/MSAPhysicsExample/Makefile.linux_shared
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Makefile.linux_shared | ||
APP_NAME = MSAPhysicsExample | ||
OF_LIBS_PATH = ../../../libs | ||
OF_ADDONS_PATH = ../../../addons | ||
|
||
CC = gcc | ||
PROJECT_DIR = ./ | ||
CFLAGS += -Wall -fexceptions | ||
#= CFLAGS += -I$(OF_LIBS_PATH)/libofw/include | ||
|
||
#== libofw.so includes | ||
CFLAGS += -I$(OF_LIBS_PATH)/openFrameworks/ -I$(OF_LIBS_PATH)/openFrameworks/events -I$(OF_LIBS_PATH)/openFrameworks/app -I$(OF_LIBS_PATH)/openFrameworks/communication -I$(OF_LIBS_PATH)/openFrameworks/graphics -I$(OF_LIBS_PATH)/openFrameworks/video -I$(OF_LIBS_PATH)/openFrameworks/utils -I$(OF_LIBS_PATH)/openFrameworks/sound -I$(OF_LIBS_PATH)/rtAudio/include -I$(OF_LIBS_PATH)/fmodex/inc -I$(OF_LIBS_PATH)/GLee/include -I$(OF_LIBS_PATH)/GLee/ -I$(OF_LIBS_PATH)/freeimage/include -I$(OF_LIBS_PATH)/freeimage -I$(OF_LIBS_PATH)/alsa/include -I$(OF_LIBS_PATH)/alsa/include/alsa -I$(OF_LIBS_PATH)/freetype/include/linux -I$(OF_LIBS_PATH)/freetype/include/linux/freetype2 -I$(OF_LIBS_PATH)/unicap/include -I$(OF_LIBS_PATH)/gstappsink/include -I$(OF_ADDONS_PATH) -I$(OF_LIBS_PATH)/poco/include | ||
|
||
#== libofw_coreaddons.so includes | ||
CFLAGS += -I$(OF_ADDONS_PATH) -I$(OF_LIBS_PATH)/poco/include -I$(OF_ADDONS_PATH)/ofxDirList/src -I$(OF_ADDONS_PATH)/ofxNetwork/src -I$(OF_ADDONS_PATH)/ofxOpenCv/src -I$(OF_ADDONS_PATH)/ofxOpenCv/libs/opencv/include -I$(OF_ADDONS_PATH)/ofxOsc/src -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/ip -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/osc -I$(OF_ADDONS_PATH)/ofxThread/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/libs -I$(OF_ADDONS_PATH)/ofxVectorMath/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/libs -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src/3DS | ||
|
||
#= libofw_msaaddons cflags | ||
CFLAGS += -I$(OF_ADDONS_PATH)/ofxMSAInteractiveObject/src -I$(OF_ADDONS_PATH)/ofxMSAFluid/src -I$(OF_ADDONS_PATH)/ofxMSANoise/src -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Core -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Constraints -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Callbacks -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/serialization -I$(OF_ADDONS_PATH)/ofxMSAShape3D/src -I$(OF_ADDONS_PATH)/ofxMSASpline/src -I$(OF_ADDONS_PATH)/ofxMSAThread/src -I$(OF_ADDONS_PATH)/ofxMSAUtils/src -I$(OF_ADDONS_PATH)/ofxObjCPointer/src -I$(OF_ADDONS_PATH)/ofxSimpleGuiToo/src/Controls | ||
|
||
|
||
CFLAGS +=`pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libavcodec libavformat libavutil libswscale --cflags` | ||
LDFLAGS += -L$(OF_LIBS_PATH)/libofw/lib -L$(OF_LIBS_PATH)/fmodex/lib/linux -L$(OF_LIBS_PATH)/unicap/lib -L$(OF_LIBS_PATH)/poco/lib/linux | ||
|
||
LIBS += -lofw -lofw_coreaddons -lofw_msaaddons -lfmodex -lraw1394 -lglut -lGL -lGLU -lXxf86vm -lasound -lPocoFoundation -lunicap | ||
CFLAGS += -DLINUX | ||
|
||
OBJS = src/main.o src/testApp.o | ||
|
||
Debug: TARGET_NAME = Debug | ||
Debug: OBJ_OUTPUT = build/Debug/ | ||
Debug: OUTPUT = bin/$(APP_NAME)_debug | ||
Debug: TARGET_OUTPUT_BASENAME = $(APP_NAME)_debug | ||
Debug: CC = gcc | ||
Debug: CFLAGS += -g -MMD | ||
|
||
OBJS_Debug = $(addprefix build/Debug/, $(OBJS) ) | ||
|
||
Release: TARGET_NAME = Release | ||
Release: OBJ_OUTPUT = build/Release/ | ||
Release: OUTPUT = bin/$(APP_NAME) | ||
Release: TARGET_OUTPUT_BASENAME = $(APP_NAME) | ||
Release: CC = gcc | ||
Release: CFLAGS += -O3 -MMD | ||
Release: LDFLAGS += -s | ||
|
||
OBJS_Release = $(addprefix build/Release/, $(OBJS) ) | ||
|
||
.PHONY: after | ||
|
||
Debug: bin/$(APP_NAME)_debug after | ||
Release: bin/$(APP_NAME) after | ||
bin/$(APP_NAME)_debug: $(OBJS_Debug) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Debug) $(LIBS) | ||
|
||
bin/$(APP_NAME): $(OBJS_Release) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Release) $(LIBS) | ||
|
||
copy_libs: | ||
# copy libs to bin/libs directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodex.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodexp.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw.so $(PROJECT_DIR)bin/libs/libofw.so | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw_coreaddons.so $(PROJECT_DIR)bin/libs/libofw_coreaddons.so | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw_msaaddons.so $(PROJECT_DIR)bin/libs/libofw_msaaddons.so | ||
# ok | ||
|
||
after: | ||
# copy shell script to bin directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp ../../../other/codeblocks/linux_clickToLaunchApp2.sh $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
sed -i s/applicationName/$(TARGET_OUTPUT_BASENAME)/g $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
# ok | ||
|
||
build/Debug/src/main.o build/Release/src/main.o: src/main.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/main.o $(CFLAGS) | ||
build/Debug/src/testApp.o build/Release/src/testApp.o: src/testApp.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/testApp.o $(CFLAGS) | ||
|
||
clean: | ||
-rm bin/$(APP_NAME)_debug bin/$(APP_NAME) | ||
-rm $(OBJS_Debug) $(OBJS_Release) | ||
|
||
ifneq ($MAKECMDGOALS,clean) | ||
build/Debug/src/main.dep: src/main.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/main.o $(CFLAGS) src/main.cpp -MF build/Debug/src/main.dep | ||
-include build/Debug/src/main.dep | ||
|
||
build/Debug/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Debug/src/testApp.dep | ||
-include build/Debug/src/testApp.dep | ||
|
||
build/Release/src/main.dep: src/main.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/main.o $(CFLAGS) src/main.cpp -MF build/Release/src/main.dep | ||
-include build/Release/src/main.dep | ||
|
||
build/Release/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Release/src/testApp.dep | ||
-include build/Release/src/testApp.dep | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# commit-log: add moreExamples/memoMSAFluidExample | ||
|
||
memo - PostPosted: Sun May 03, 2009 5:27 pm | ||
http://www.openframeworks.cc/forum/viewtopic.php?f=10&t=1915 | ||
=> I"ve just uploaded a new version of ofxMSAFluid. | ||
http://www.memo.tv/ofxmsafluid | ||
|
||
Now I"ve included an example, so hopefully that should demonstrate how to use the addon. The demo also has tuio support (you'll need ofxTuio and ofxOsc) and you can play with the parameters in realtime using a gui (I'm using ofxSimpleGuiToo which is based on Todd's ofxSimpleGui API - more info on that at in the post). | ||
|
||
And quite importantly, thanks to the beauty of open-source, now the lib is radically faster. Programmer & artiste extraordinaire Emmanuel Maa has done some serious optimizations so that the solver runs 10% - 100% faster! | ||
|
111 changes: 111 additions & 0 deletions
111
apps/addonsExamples/MSAShape3DExample/Makefile.linux_shared
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Makefile.linux_shared | ||
APP_NAME = MSAShape3DExample | ||
OF_LIBS_PATH = ../../../libs | ||
OF_ADDONS_PATH = ../../../addons | ||
|
||
CC = gcc | ||
PROJECT_DIR = ./ | ||
CFLAGS += -Wall -fexceptions | ||
#= CFLAGS += -I$(OF_LIBS_PATH)/libofw/include | ||
|
||
#== libofw.so includes | ||
CFLAGS += -I$(OF_LIBS_PATH)/openFrameworks/ -I$(OF_LIBS_PATH)/openFrameworks/events -I$(OF_LIBS_PATH)/openFrameworks/app -I$(OF_LIBS_PATH)/openFrameworks/communication -I$(OF_LIBS_PATH)/openFrameworks/graphics -I$(OF_LIBS_PATH)/openFrameworks/video -I$(OF_LIBS_PATH)/openFrameworks/utils -I$(OF_LIBS_PATH)/openFrameworks/sound -I$(OF_LIBS_PATH)/rtAudio/include -I$(OF_LIBS_PATH)/fmodex/inc -I$(OF_LIBS_PATH)/GLee/include -I$(OF_LIBS_PATH)/GLee/ -I$(OF_LIBS_PATH)/freeimage/include -I$(OF_LIBS_PATH)/freeimage -I$(OF_LIBS_PATH)/alsa/include -I$(OF_LIBS_PATH)/alsa/include/alsa -I$(OF_LIBS_PATH)/freetype/include/linux -I$(OF_LIBS_PATH)/freetype/include/linux/freetype2 -I$(OF_LIBS_PATH)/unicap/include -I$(OF_LIBS_PATH)/gstappsink/include -I$(OF_ADDONS_PATH) -I$(OF_LIBS_PATH)/poco/include | ||
|
||
#== libofw_coreaddons.so includes | ||
CFLAGS += -I$(OF_ADDONS_PATH) -I$(OF_LIBS_PATH)/poco/include -I$(OF_ADDONS_PATH)/ofxDirList/src -I$(OF_ADDONS_PATH)/ofxNetwork/src -I$(OF_ADDONS_PATH)/ofxOpenCv/src -I$(OF_ADDONS_PATH)/ofxOpenCv/libs/opencv/include -I$(OF_ADDONS_PATH)/ofxOsc/src -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/ip -I$(OF_ADDONS_PATH)/ofxOsc/libs/oscpack/include/osc -I$(OF_ADDONS_PATH)/ofxThread/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/src -I$(OF_ADDONS_PATH)/ofxVectorGraphics/libs -I$(OF_ADDONS_PATH)/ofxVectorMath/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/src -I$(OF_ADDONS_PATH)/ofxXmlSettings/libs -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src -I$(OF_ADDONS_PATH)/ofx3DModelLoader/src/3DS | ||
|
||
#= libofw_msaaddons cflags | ||
CFLAGS += -I$(OF_ADDONS_PATH)/ofxMSAInteractiveObject/src -I$(OF_ADDONS_PATH)/ofxMSAFluid/src -I$(OF_ADDONS_PATH)/ofxMSANoise/src -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Core -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Constraints -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/Callbacks -I$(OF_ADDONS_PATH)/ofxMSAPhysics/src/serialization -I$(OF_ADDONS_PATH)/ofxMSAShape3D/src -I$(OF_ADDONS_PATH)/ofxMSASpline/src -I$(OF_ADDONS_PATH)/ofxMSAThread/src -I$(OF_ADDONS_PATH)/ofxMSAUtils/src -I$(OF_ADDONS_PATH)/ofxObjCPointer/src -I$(OF_ADDONS_PATH)/ofxSimpleGuiToo/src/Controls | ||
|
||
|
||
CFLAGS +=`pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libavcodec libavformat libavutil libswscale --cflags` | ||
LDFLAGS += -L$(OF_LIBS_PATH)/libofw/lib -L$(OF_LIBS_PATH)/fmodex/lib/linux -L$(OF_LIBS_PATH)/unicap/lib -L$(OF_LIBS_PATH)/poco/lib/linux | ||
|
||
LIBS += -lofw -lofw_coreaddons -lofw_msaaddons -lfmodex -lraw1394 -lglut -lGL -lGLU -lXxf86vm -lasound -lPocoFoundation -lunicap | ||
CFLAGS += -DLINUX | ||
|
||
OBJS = src/main.o src/testApp.o | ||
|
||
Debug: TARGET_NAME = Debug | ||
Debug: OBJ_OUTPUT = build/Debug/ | ||
Debug: OUTPUT = bin/$(APP_NAME)_debug | ||
Debug: TARGET_OUTPUT_BASENAME = $(APP_NAME)_debug | ||
Debug: CC = gcc | ||
Debug: CFLAGS += -g -MMD | ||
|
||
OBJS_Debug = $(addprefix build/Debug/, $(OBJS) ) | ||
|
||
Release: TARGET_NAME = Release | ||
Release: OBJ_OUTPUT = build/Release/ | ||
Release: OUTPUT = bin/$(APP_NAME) | ||
Release: TARGET_OUTPUT_BASENAME = $(APP_NAME) | ||
Release: CC = gcc | ||
Release: CFLAGS += -O3 -MMD | ||
Release: LDFLAGS += -s | ||
|
||
OBJS_Release = $(addprefix build/Release/, $(OBJS) ) | ||
|
||
.PHONY: after | ||
|
||
Debug: bin/$(APP_NAME)_debug after | ||
Release: bin/$(APP_NAME) after | ||
bin/$(APP_NAME)_debug: $(OBJS_Debug) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Debug) $(LIBS) | ||
|
||
bin/$(APP_NAME): $(OBJS_Release) | ||
mkdir -p bin/ | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS_Release) $(LIBS) | ||
|
||
copy_libs: | ||
# copy libs to bin/libs directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodex.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/fmodex/lib/linux/libfmodexp.so $(PROJECT_DIR)bin/libs/ | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw.so $(PROJECT_DIR)bin/libs/libofw.so | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw_coreaddons.so $(PROJECT_DIR)bin/libs/libofw_coreaddons.so | ||
cp -p $(OF_LIBS_PATH)/libofw/lib/libofw_msaaddons.so $(PROJECT_DIR)bin/libs/libofw_msaaddons.so | ||
# ok | ||
|
||
after: | ||
# copy shell script to bin directory: | ||
mkdir -p $(PROJECT_DIR)bin/ | ||
mkdir -p $(PROJECT_DIR)bin/libs/ | ||
cp ../../../other/codeblocks/linux_clickToLaunchApp2.sh $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
sed -i s/applicationName/$(TARGET_OUTPUT_BASENAME)/g $(PROJECT_DIR)bin/$(TARGET_OUTPUT_BASENAME).sh | ||
# ok | ||
|
||
build/Debug/src/main.o build/Release/src/main.o: src/main.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/main.o $(CFLAGS) | ||
build/Debug/src/testApp.o build/Release/src/testApp.o: src/testApp.cpp | ||
mkdir -p $(OBJ_OUTPUT)src/ | ||
$(CC) -c $< -o $(OBJ_OUTPUT)src/testApp.o $(CFLAGS) | ||
|
||
clean: | ||
-rm bin/$(APP_NAME)_debug bin/$(APP_NAME) | ||
-rm $(OBJS_Debug) $(OBJS_Release) | ||
|
||
ifneq ($MAKECMDGOALS,clean) | ||
build/Debug/src/main.dep: src/main.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/main.o $(CFLAGS) src/main.cpp -MF build/Debug/src/main.dep | ||
-include build/Debug/src/main.dep | ||
|
||
build/Debug/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Debug/src/ | ||
$(CC) -M -MT build/Debug/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Debug/src/testApp.dep | ||
-include build/Debug/src/testApp.dep | ||
|
||
build/Release/src/main.dep: src/main.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/main.o $(CFLAGS) src/main.cpp -MF build/Release/src/main.dep | ||
-include build/Release/src/main.dep | ||
|
||
build/Release/src/testApp.dep: src/testApp.cpp | ||
mkdir -p build/Release/src/ | ||
$(CC) -M -MT build/Release/src/testApp.o $(CFLAGS) src/testApp.cpp -MF build/Release/src/testApp.dep | ||
-include build/Release/src/testApp.dep | ||
|
||
endif |
Oops, something went wrong.