RE: Problems with New Pluggable Terminal Sample



You may need The makefile. Please note that Directshow has moved from DirectX
Directories to PSDK Directories (last version ).
Makefile :
----------------------------------------------------------------------------------


# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
# ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 1999-2003 Microsoft Corporation. All Rights Reserved.
#
#
# Processor independent makefile

# Nmake macros for building Windows 32-Bit apps

!if ("$(TARGETOS)" == "WINNT") && (("$(APPVER)" != "4.0") && ("$(APPVER)" !=
"5.0")) \
&& ("$(CPU)" != "IA64") && ("$(CPU)" != "AMD64")

!message !!!See Readme.Txt about setting the DXSDKROOT enviroment var!!!
INCLUDE = $(VCINSTALLDIR)\Vc7\PlatformSDK\ Include\DShowIDL;$(INCLUDE)

LIB=$(DXSDKROOT)\lib;$(LIB)

!include <win32.mak>

PROJ = PlgTerm

!ifndef MIDL
MIDL = midl
!endif

all: $(OUTDIR) $(OUTDIR)\PlgTermSample_i.c $(OUTDIR)\$(PROJ).dll

MIDLFLAGS = /Oicf -char unsigned -ms_ext -c_ext -error all -header
PlgTermSample.h \
-robust -cpp_cmd $(CC) -DMSPLOG -DUNICODE -Di386 -D_X86_
\
-D_WCHAR_T_DEFINED

#Run MIDL compiler to generate the header and definition files
$(OUTDIR)\PlgTermSample.h $(OUTDIR)\PlgTermSample_i.c : PlgTermSample.idl
$(MIDL) $(MIDLFLAGS) /tlb PlgTermSample.tlb /out $(OUTDIR)
PlgTermSample.idl


INCLUDE = $(DXSDKROOT)\Include;$(MSSdk)\Samples\Multimedia
\DirectShow\BaseClasses;$(INCLUDE)

# Define project specific macros
PROJ_OBJS = $(OUTDIR)\Pluggable.obj \
$(OUTDIR)\PlgTermFilter.obj \
$(OUTDIR)\PlgTermPin.obj \
$(OUTDIR)\PlgTerm.obj


BASE_OBJS =


#
# note: you need to build $(MSSdk)\samples\Multimedia\directshow\baseclasses
# to produce UNICODE strmbase.lib or strmbasd.lib file before
# building PlgTerm sample
#

DXDBGOUTDIR = XP32_DEBUG
DXRELOUTDIR = XP32_DEBUG

!IFDEF NODEBUG
STRMBASE="C:\Program Files\Microsoft Platform
SDK\Samples\Multimedia\DirectShow\BaseClasses\$(DXRELOUTDIR)\strmbase.lib"
/NODEFAULTLIB:libcmt.lib
!else
STRMBASE="C:\Program Files\Microsoft Platform
SDK\Samples\Multimedia\DirectShow\BaseClasses\$(DXDBGOUTDIR)\strmbasd.lib"
/NODEFAULTLIB:libcmtd.lib
!endif

EXTRA_LIBS = uuid.lib winmm.lib bufferoverflowU.lib \
rtutils.lib $(STRMBASE)


#
# note: you need to build ..\MSPBase to produce MSPBaseSample.lib file before
# building PlgTerm sample
#

EXTRA_LIBS = $(EXTRA_LIBS) ..\MSP\lib\$(OUTDIR)\MSPBaseSample.lib


GLOBAL_DEP = resource.h
RC_DEP = resource.h
DEFFILE = PlgTerm.def


cflags = $(cflags) -DMSPLOG -DUNICODE -GR -GX

"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir $(OUTDIR)

# Inference rule for updating the object files
#PlgTermSample_i.obj : PlgTermSample.h PlgTermSample_i.c


# Inference rule for updating the object files
..cpp{$(OUTDIR)}.obj:
$(cc) $(cdebug) $(cflags) $(cvars) /I$(OUTDIR) /Fo"$(OUTDIR)\\"
/Fd"$(OUTDIR)\\" $**


# Build rule for resource file
$(OUTDIR)\$(PROJ).res: $(PROJ).rc $(RC_DEP)
$(rc) $(rcflags) $(rcvars) /i $(OUTDIR) /fo $(OUTDIR)\$(PROJ).res
$(PROJ).rc


# Build rule for DLL
$(OUTDIR)\$(PROJ).DLL: $(BASE_OBJS) $(PROJ_OBJS) $(OUTDIR)\$(PROJ).res
$(link) /DLL $(linkdebug) /DEF:$(DEFFILE) $(guilflags) \
$(BASE_OBJS) $(PROJ_OBJS) $(OUTDIR)\$(PROJ).res $(EXTRA_LIBS) \
-out:$(OUTDIR)\$(PROJ).dll $(MAPFILE)


# Rules for cleaning out those old files
clean:
$(CLEANUP)

!ELSE
!IF ("$(CPU)" == "IA64") || ("$(CPU)" == "AMD64")
!MESSAGE Sorry, this sample is not supported on the 64-bit platforms.
!ELSE
!MESSAGE Sorry, this sample builds for Windows XP and greater.
!ENDIF
!ENDIF


----------------------------------------------------------------------------

By the way, Do you how to build my project in the VC++ Graphic Environnement
from the makefile. I used to build my makefile projects from the command
line.

Thank you.
.



Relevant Pages

  • Re: Problems with New Pluggable Terminal Sample
    ... is this the original makefile from the SDK? ... Modify the makefile to print out the include and lib ... >!ifndef MIDL ...
    (microsoft.public.win32.programmer.tapi)
  • [patch 05/10] uml: make -j fix
    ... every makefile change must use correct dependencies (and ... -#We need to re-preprocess this when the symlink dest changes. ... USER_OBJS:= $(foreach file,$(USER_OBJS),$/$) ...
    (Linux-Kernel)
  • Problem with make config and OPTIONS
    ... I have a problem, I'm trying to upgrade an existing port, I have done some changes in the Makefile but when I test the command 'make config' I have: ... I haven't the dialog box with the differents kinds of Options that are written in the Makefile, i have try the 'make rmconfig' but no change. ... PYCRYPTO "Support for py-crypto for WEP decoding" off \ ...
    (freebsd-questions)
  • Makefile correction?
    ... tardis# make install clean ... I am trying to correct the Makefile, I figure this is where it would be, ... # New ports collection makefile for: Gnu Chess ...
    (freebsd-questions)
  • Re: JDK13 fails to build
    ... >> Have you read the actual error messages? ... >> of a netscape plugin. ... Take a look in the Makefile. ...
    (freebsd-questions)

Loading