for windows
svn path=/trunk/externals/iem/comport/; revision=6915
This commit is contained in:
parent
34ea71056f
commit
f44fcefa9b
6 changed files with 302 additions and 0 deletions
85
bird/bird.dsp
Normal file
85
bird/bird.dsp
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Microsoft Developer Studio Project File - Name="bird" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) External Target" 0x0106
|
||||
|
||||
CFG=bird - Win32 Debug
|
||||
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "bird.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "bird.mak" CFG="bird - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Für die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "bird - Win32 Release" (basierend auf "Win32 (x86) External Target")
|
||||
!MESSAGE "bird - Win32 Debug" (basierend auf "Win32 (x86) External Target")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
|
||||
!IF "$(CFG)" == "bird - Win32 Release"
|
||||
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makefile_win.exe"
|
||||
# PROP BASE Bsc_Name "makefile_win.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "bird.exe"
|
||||
# PROP Bsc_Name "bird.bsc"
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ELSEIF "$(CFG)" == "bird - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makefile_win.exe"
|
||||
# PROP BASE Bsc_Name "makefile_win.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "bird.exe"
|
||||
# PROP Bsc_Name "bird.bsc"
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "bird - Win32 Release"
|
||||
# Name "bird - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "bird - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "bird - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\makefile_win
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
29
bird/bird.dsw
Normal file
29
bird/bird.dsw
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "bird"=.\bird.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
37
bird/makefile_win
Normal file
37
bird/makefile_win
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
all: bird.dll
|
||||
|
||||
VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98"
|
||||
|
||||
PD_INST_PATH = "C:\Programme\pd"
|
||||
|
||||
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
|
||||
|
||||
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -DPA_LITTLE_ENDIAN
|
||||
|
||||
PD_WIN_L_FLAGS = /nologo
|
||||
|
||||
PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \
|
||||
$(VIS_CPP_PATH)\lib\libc.lib \
|
||||
$(VIS_CPP_PATH)\lib\oldnames.lib \
|
||||
$(VIS_CPP_PATH)\lib\kernel32.lib \
|
||||
$(VIS_CPP_PATH)\lib\wsock32.lib \
|
||||
$(VIS_CPP_PATH)\lib\winmm.lib \
|
||||
$(PD_INST_PATH)\bin\pthreadVC.lib \
|
||||
$(PD_INST_PATH)\bin\pd.lib
|
||||
|
||||
|
||||
SRC = bird.c
|
||||
|
||||
|
||||
OBJ = $(SRC:.c=.obj)
|
||||
|
||||
.c.obj:
|
||||
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
|
||||
|
||||
bird.dll: $(OBJ)
|
||||
link $(PD_WIN_L_FLAGS) /dll /export:bird_setup \
|
||||
/out:bird.dll $(OBJ) $(PD_WIN_LIB)
|
||||
|
||||
clean:
|
||||
del *.obj
|
||||
85
comport/comport.dsp
Normal file
85
comport/comport.dsp
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Microsoft Developer Studio Project File - Name="comport" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) External Target" 0x0106
|
||||
|
||||
CFG=comport - Win32 Debug
|
||||
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "comport.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "comport.mak" CFG="comport - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Für die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "comport - Win32 Release" (basierend auf "Win32 (x86) External Target")
|
||||
!MESSAGE "comport - Win32 Debug" (basierend auf "Win32 (x86) External Target")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
|
||||
!IF "$(CFG)" == "comport - Win32 Release"
|
||||
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makefile_win.exe"
|
||||
# PROP BASE Bsc_Name "makefile_win.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "comport.exe"
|
||||
# PROP Bsc_Name "comport.bsc"
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ELSEIF "$(CFG)" == "comport - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makefile_win.exe"
|
||||
# PROP BASE Bsc_Name "makefile_win.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Cmd_Line "NMAKE /f makefile_win"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "comport.exe"
|
||||
# PROP Bsc_Name "comport.bsc"
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "comport - Win32 Release"
|
||||
# Name "comport - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "comport - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "comport - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\makefile_win
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
29
comport/comport.dsw
Normal file
29
comport/comport.dsw
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "comport"=.\comport.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
37
comport/makefile_win
Normal file
37
comport/makefile_win
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
all: comport.dll
|
||||
|
||||
VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98"
|
||||
|
||||
PD_INST_PATH = "C:\Programme\pd"
|
||||
|
||||
PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include
|
||||
|
||||
PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -DPA_LITTLE_ENDIAN
|
||||
|
||||
PD_WIN_L_FLAGS = /nologo
|
||||
|
||||
PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \
|
||||
$(VIS_CPP_PATH)\lib\libc.lib \
|
||||
$(VIS_CPP_PATH)\lib\oldnames.lib \
|
||||
$(VIS_CPP_PATH)\lib\kernel32.lib \
|
||||
$(VIS_CPP_PATH)\lib\wsock32.lib \
|
||||
$(VIS_CPP_PATH)\lib\winmm.lib \
|
||||
$(PD_INST_PATH)\bin\pthreadVC.lib \
|
||||
$(PD_INST_PATH)\bin\pd.lib
|
||||
|
||||
|
||||
SRC = comport.c
|
||||
|
||||
|
||||
OBJ = $(SRC:.c=.obj)
|
||||
|
||||
.c.obj:
|
||||
cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c
|
||||
|
||||
comport.dll: $(OBJ)
|
||||
link $(PD_WIN_L_FLAGS) /dll /export:comport_setup \
|
||||
/out:comport.dll $(OBJ) $(PD_WIN_LIB)
|
||||
|
||||
clean:
|
||||
del *.obj
|
||||
Loading…
Reference in a new issue