summaryrefslogtreecommitdiff
path: root/im/src/im_capture.mak
blob: 8f10bc71bf0dd0cea3a492fdd2266b8c45540193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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