summaryrefslogtreecommitdiff
path: root/im/src/im_capture.mak
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /im/src/im_capture.mak
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'im/src/im_capture.mak')
-rwxr-xr-xim/src/im_capture.mak73
1 files changed, 73 insertions, 0 deletions
diff --git a/im/src/im_capture.mak b/im/src/im_capture.mak
new file mode 100755
index 0000000..8f10bc7
--- /dev/null
+++ b/im/src/im_capture.mak
@@ -0,0 +1,73 @@
+PROJNAME = im
+LIBNAME = im_capture
+OPT = YES
+
+INCLUDES = ../include
+
+# New Direct X does not includes Direct Show
+# Direct Show is included in latest Platform SDK, but depends on Direct X...
+DXSDK = d:/lng/dxsdk
+WINSDK = d:/lng/winsdk
+
+ifeq ($(TEC_UNAME), vc6)
+ #Use old Direct X with Direct Show
+ #But do NOT use the VC6 strmiids.lib
+ PLATSDK = d:/lng/vc7/PlatformSDK
+endif
+
+ifeq ($(TEC_UNAME), dll)
+ #Use old Direct X with Direct Show
+ PLATSDK = d:/lng/vc7/PlatformSDK
+ LDIR = ../lib/$(TEC_UNAME)
+endif
+
+ifeq ($(TEC_UNAME), vc8)
+ INCLUDES += $(WINSDK)/include
+ LDIR = $(WINSDK)/lib
+endif
+
+ifeq ($(TEC_UNAME), dll8)
+ INCLUDES += $(WINSDK)/include
+ LDIR = $(WINSDK)/lib
+endif
+
+ifeq ($(TEC_UNAME), vc8_64)
+ INCLUDES += $(WINSDK)/include
+ LDIR = $(WINSDK)/lib/amd64
+endif
+
+ifeq ($(TEC_UNAME), dll8_64)
+ INCLUDES += $(WINSDK)/include
+ LDIR = $(WINSDK)/lib/amd64
+endif
+
+ifneq ($(findstring Win, $(TEC_SYSNAME)), )
+ INCLUDES += $(DXSDK)/include
+ SRC = im_capture_dx.cpp
+endif
+
+#ifneq ($(findstring Linux, $(TEC_UNAME)), )
+# SRC = im_capture_v4l.cpp
+#endif
+
+LIBS = strmiids
+
+mingw3-dll:
+ @echo Importing MingW stub library
+ @cd ../lib/dll
+ @dlltool -d im_capture.def -D im_capture.dll -l ../lib/mingw3/libim_capture.a
+ @cd ../src
+
+mingw4-dll:
+ @echo Importing MingW stub library
+ @cd ../lib/dll
+ @dlltool -d im_capture.def -D im_capture.dll -l ../lib/mingw4/libim_capture.a
+ @cd ../src
+
+bc56-dll:
+ @echo Importing Bcc stub library
+ @d:/lng/cbuilderx/bin/implib -a ../lib/bc56/im_capture.lib ../lib/dll/im_capture.dll
+
+#owc1-dll:
+# @wlib -b -c -n -q -fo -io ../lib/owc1/im_capture.lib @im_capture.wlib
+# TEST @wlib -b -c -n -q -fo -io ../lib/owc1/im_capture.lib +../lib/dll/im_capture.dll