Bonjour,
j'ai un programme ecris en VC++ a compiler avec gcc. Mon probleme c'est que je n'arrive pas a convertir le makefile vcc en makefile gcc.
Si quelqu'un sais comment faire ca serais sympa! et ca ne prendrais surement pas beaucoup de temps. Pour moi la syntaxe est trop compliquer et je suis decu depuis des jours...
Je me suis amuser a chercher comment faire sur des sites mais resultats je n'y arrive pas. Si quelqu'un veut m'aider je le remercie d'avance.
Je sais que l'on va me conseiller d'aller lire tel truc sur tel site sur comment faire des makefiles et ca je l'ai deja fais.
Je mets ici la version original sans bugs sortie de vcc 6.0. Je ne mets pas la propre version que j'ai tenter de faire car elle ne compile pas.
Je penses que quelqu'un qui si connais resouderas mon probleme rapidement.
Le voici version Visual c++ :
# Microsoft Developer Studio Generated NMAKE File, Based on Test.dsp
!IF "$(CFG)" == ""
CFG=Test - Win32 Debug
!MESSAGE No configuration specified. Defaulting to Test - Win32 Debug.
!ENDIF
!IF "$(CFG)" != "Test - Win32 Release" && "$(CFG)" != "Test - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Test.mak" CFG="Test - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "Test - Win32 Release" (based on "Win32 (x86) Application" )
!MESSAGE "Test - Win32 Debug" (based on "Win32 (x86) Application" )
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
!IF "$(CFG)" == "Test - Win32 Release"
OUTDIR=.\../Bin/Release/Test
INTDIR=.\../Bin/Release/Test
!IF "$(RECURSE)" == "0"
ALL : "..\Bin\Release\Test.exe"
!ELSE
ALL : "CadIO - Win32 Release" "..\Bin\Release\Test.exe"
!ENDIF
!IF "$(RECURSE)" == "1"
CLEAN :"CadIO - Win32 ReleaseCLEAN"
!ELSE
CLEAN :
!ENDIF
-@erase "$(INTDIR)\CadLib.obj"
-@erase "$(INTDIR)\DrawingView.obj"
-@erase "$(INTDIR)\ProgDlg.obj"
-@erase "$(INTDIR)\StdAfx.obj"
-@erase "$(INTDIR)\Test.obj"
-@erase "$(INTDIR)\Test.pch"
-@erase "$(INTDIR)\Test.res"
-@erase "$(INTDIR)\TestDlg.obj"
-@erase "$(INTDIR)\vc60.idb"
-@erase "..\Bin\Release\Test.exe"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\Test.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
.c{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.c{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
MTL=midl.exe
MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
RSC=rc.exe
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\Test.res" /d "NDEBUG"
BSC32=bscmake.exe
BSC32_FLAGS=/nologo /o"$(OUTDIR)\Test.bsc"
BSC32_SBRS= \
LINK32=link.exe
LINK32_FLAGS=/nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\Test.pdb" /machine:I386 /out:"../Bin/Release/Test.exe"
LINK32_OBJS= \
"$(INTDIR)\CadLib.obj" \
"$(INTDIR)\DrawingView.obj" \
"$(INTDIR)\ProgDlg.obj" \
"$(INTDIR)\StdAfx.obj" \
"$(INTDIR)\Test.obj" \
"$(INTDIR)\TestDlg.obj" \
"$(INTDIR)\Test.res" \
"..\Bin\Release\CadIO\CadIO.lib"
"..\Bin\Release\Test.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
OUTDIR=.\../Bin/Debug/Test
INTDIR=.\../Bin/Debug/Test
# Begin Custom Macros
OutDir=.\../Bin/Debug/Test
# End Custom Macros
!IF "$(RECURSE)" == "0"
ALL : "..\Bin\Debug\Test.exe" "$(OUTDIR)\Test.bsc"
!ELSE
ALL : "CadIO - Win32 Debug" "..\Bin\Debug\Test.exe" "$(OUTDIR)\Test.bsc"
!ENDIF
!IF "$(RECURSE)" == "1"
CLEAN :"CadIO - Win32 DebugCLEAN"
!ELSE
CLEAN :
!ENDIF
-@erase "$(INTDIR)\CadLib.obj"
-@erase "$(INTDIR)\CadLib.sbr"
-@erase "$(INTDIR)\DrawingView.obj"
-@erase "$(INTDIR)\DrawingView.sbr"
-@erase "$(INTDIR)\ProgDlg.obj"
-@erase "$(INTDIR)\ProgDlg.sbr"
-@erase "$(INTDIR)\StdAfx.obj"
-@erase "$(INTDIR)\StdAfx.sbr"
-@erase "$(INTDIR)\Test.obj"
-@erase "$(INTDIR)\Test.pch"
-@erase "$(INTDIR)\Test.res"
-@erase "$(INTDIR)\Test.sbr"
-@erase "$(INTDIR)\TestDlg.obj"
-@erase "$(INTDIR)\TestDlg.sbr"
-@erase "$(INTDIR)\vc60.idb"
-@erase "$(INTDIR)\vc60.pdb"
-@erase "$(OUTDIR)\Test.bsc"
-@erase "$(OUTDIR)\Test.pdb"
-@erase "..\Bin\Debug\Test.exe"
-@erase "..\Bin\Debug\Test.ilk"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\Test.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
.c{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.obj::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.c{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.sbr::
$(CPP) @<<
$(CPP_PROJ) $<
<<
MTL=midl.exe
MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
RSC=rc.exe
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\Test.res" /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
BSC32_FLAGS=/nologo /o"$(OUTDIR)\Test.bsc"
BSC32_SBRS= \
"$(INTDIR)\CadLib.sbr" \
"$(INTDIR)\DrawingView.sbr" \
"$(INTDIR)\ProgDlg.sbr" \
"$(INTDIR)\StdAfx.sbr" \
"$(INTDIR)\Test.sbr" \
"$(INTDIR)\TestDlg.sbr"
"$(OUTDIR)\Test.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
$(BSC32) @<<
$(BSC32_FLAGS) $(BSC32_SBRS)
<<
LINK32=link.exe
LINK32_FLAGS=/nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\Test.pdb" /debug /machine:I386 /out:"../Bin/Debug/Test.exe" /pdbtype:sept
LINK32_OBJS= \
"$(INTDIR)\CadLib.obj" \
"$(INTDIR)\DrawingView.obj" \
"$(INTDIR)\ProgDlg.obj" \
"$(INTDIR)\StdAfx.obj" \
"$(INTDIR)\Test.obj" \
"$(INTDIR)\TestDlg.obj" \
"$(INTDIR)\Test.res" \
"..\Bin\Debug\CadIO\CadIO.lib"
"..\Bin\Debug\Test.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ENDIF
!IF "$(NO_EXTERNAL_DEPS)" != "1"
!IF EXISTS("Test.dep" )
!INCLUDE "Test.dep"
!ELSE
!MESSAGE Warning: cannot find "Test.dep"
!ENDIF
!ENDIF
!IF "$(CFG)" == "Test - Win32 Release" || "$(CFG)" == "Test - Win32 Debug"
SOURCE=..\Interface\VC\CadLib.cpp
!IF "$(CFG)" == "Test - Win32 Release"
"$(INTDIR)\CadLib.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
$(CPP) $(CPP_PROJ) $(SOURCE)
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"$(INTDIR)\CadLib.obj" "$(INTDIR)\CadLib.sbr" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
$(CPP) $(CPP_PROJ) $(SOURCE)
!ENDIF
SOURCE=.\DrawingView.cpp
!IF "$(CFG)" == "Test - Win32 Release"
"$(INTDIR)\DrawingView.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"$(INTDIR)\DrawingView.obj" "$(INTDIR)\DrawingView.sbr" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ENDIF
SOURCE=.\ProgDlg.cpp
!IF "$(CFG)" == "Test - Win32 Release"
"$(INTDIR)\ProgDlg.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"$(INTDIR)\ProgDlg.obj" "$(INTDIR)\ProgDlg.sbr" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ENDIF
SOURCE=.\StdAfx.cpp
!IF "$(CFG)" == "Test - Win32 Release"
CPP_SWITCHES=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\Test.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
"$(INTDIR)\StdAfx.obj" "$(INTDIR)\Test.pch" : $(SOURCE) "$(INTDIR)"
$(CPP) @<<
$(CPP_SWITCHES) $(SOURCE)
<<
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
CPP_SWITCHES=/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\Test.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
"$(INTDIR)\StdAfx.obj" "$(INTDIR)\StdAfx.sbr" "$(INTDIR)\Test.pch" : $(SOURCE) "$(INTDIR)"
$(CPP) @<<
$(CPP_SWITCHES) $(SOURCE)
<<
!ENDIF
SOURCE=.\Test.cpp
!IF "$(CFG)" == "Test - Win32 Release"
"$(INTDIR)\Test.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"$(INTDIR)\Test.obj" "$(INTDIR)\Test.sbr" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ENDIF
SOURCE=.\Test.rc
"$(INTDIR)\Test.res" : $(SOURCE) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
SOURCE=.\TestDlg.cpp
!IF "$(CFG)" == "Test - Win32 Release"
"$(INTDIR)\TestDlg.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"$(INTDIR)\TestDlg.obj" "$(INTDIR)\TestDlg.sbr" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\Test.pch"
!ENDIF
!IF "$(CFG)" == "Test - Win32 Release"
"CadIO - Win32 Release" :
cd "\Documents and Settings\fred\Bureau\cadlib_src\CadIO"
$(MAKE) /$(MAKEFLAGS) /F ".\CadIO.mak" CFG="CadIO - Win32 Release"
cd "..\Test"
"CadIO - Win32 ReleaseCLEAN" :
cd "\Documents and Settings\fred\Bureau\cadlib_src\CadIO"
$(MAKE) /$(MAKEFLAGS) /F ".\CadIO.mak" CFG="CadIO - Win32 Release" RECURSE=1 CLEAN
cd "..\Test"
!ELSEIF "$(CFG)" == "Test - Win32 Debug"
"CadIO - Win32 Debug" :
cd "\Documents and Settings\fred\Bureau\cadlib_src\CadIO"
$(MAKE) /$(MAKEFLAGS) /F ".\CadIO.mak" CFG="CadIO - Win32 Debug"
cd "..\Test"
"CadIO - Win32 DebugCLEAN" :
cd "\Documents and Settings\fred\Bureau\cadlib_src\CadIO"
$(MAKE) /$(MAKEFLAGS) /F ".\CadIO.mak" CFG="CadIO - Win32 Debug" RECURSE=1 CLEAN
cd "..\Test"
!ENDIF
!ENDIF