Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
453d733f
Commit
453d733f
authored
Nov 12, 2007
by
Miller Puckette
Browse files
adapt to ".net" compiler for MS Windows
parent
cf3e58e9
Changes
8
Hide whitespace changes
Inline
Side-by-side
extra/expr~/makefile
View file @
453d733f
...
...
@@ -14,16 +14,17 @@ pd_nt: expr.dll
NTOBJ
=
vexp.obj vexp_fun.obj vexp_if.obj
PDNTCFLAGS
=
/W3 /WX /DNT /DPD /nologo
VC
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio
\V
c98"
PDNTCFLAGS
=
/W3 /DNT /DPD /nologo
VC
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio 9.0
\V
C"
VSTK
=
"C:
\P
rogram Files
\M
icrosoft SDKs
\W
indows
\v
6.0A"
PDNTINCLUDE
=
/I. /I..
\.
.
\s
rc /I
$(VC)
\i
nclude
PDNTLDIR
=
$(VC)
\l
ib
PDNTLIB
=
$(PDNTLDIR)
\l
ibc.lib
\
$(PDNTLDIR)
\o
ldnames.lib
\
$(PDNTLDIR)
\k
ernel32.lib
\
..
\.
.
\b
in
\p
d.lib
PDNTLIB
=
/NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel32
\
$(PDNTLDIR)
\l
ibcmt.lib
$(PDNTLDIR)
\o
ldnames.lib
\
$(VSTK)
\l
ib
\k
ernel32.lib
\
..
\.
.
\b
in
\p
d.lib
.c.obj
:
cl
$(PDNTCFLAGS)
$(PDNTINCLUDE)
/c
$*
.c
...
...
extra/makefile
View file @
453d733f
...
...
@@ -7,15 +7,17 @@ pd_nt: $(NAME).dll
.SUFFIXES
:
.dll
PDNTCFLAGS
=
/W3 /WX /DNT /DPD /nologo
VC
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio
\V
c98"
# VC="C:\Program Files\Microsoft Visual Studio\Vc98"
VC
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio 9.0
\V
C"
VSTK
=
"C:
\P
rogram Files
\M
icrosoft SDKs
\W
indows
\v
6.0A"
PDNTINCLUDE
=
/I. /I..
\.
.
\s
rc /I
$(VC)
\i
nclude
PDNTLDIR
=
$(VC)
\l
ib
PDNTLIB
=
$(PDNTLDIR)
\l
ibc.lib
\
$(PDNTLDIR)
\o
ldnames.lib
\
$(PDNTLDIR)
\k
ernel32.lib
\
..
\.
.
\b
in
\p
d.lib
PDNTLIB
=
/NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel32
\
$(PDNTLDIR)
\l
ibcmt.lib
$(PDNTLDIR)
\o
ldnames.lib
\
$(VSTK)
\l
ib
\k
ernel32.lib
\
..
\.
.
\b
in
\p
d.lib
.c.dll
:
cl
$(PDNTCFLAGS)
$(PDNTINCLUDE)
/c
$*
.c
...
...
msw/send-msw.sh
View file @
453d733f
...
...
@@ -20,10 +20,20 @@ cp -a extra/ /tmp/pd/extra
cd
/tmp/pd
find
.
-name
"*.pd_linux"
-exec
rm
{}
\;
foreach i
(
`
find
.
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
-o
-name
"*.html"
`
)
foreach i
(
`
find
.
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
\
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
\
-o
-name
"*.html"
|
grep
-v
asio |
grep
-v
portmidi |
grep
-v
portaudio
\
|
grep
-v
include/X11
`
)
textconvert u w <
$i
>
/tmp/xxx
mv
/tmp/xxx
$i
end
foreach i
(
`
find lib/asio
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
-o
-name
"*.html"
`
)
echo
FOO-----
$i
textconvert w u <
$i
>
/tmp/xxx
textconvert u w < /tmp/xxx
>
$i
end
cd
..
rm
-f
pd.zip
zip
-q
-r
pd.zip pd
...
...
msw/send-nodoc.sh
View file @
453d733f
...
...
@@ -24,10 +24,19 @@ cp -a extra/ /tmp/pd/extra
cd
/tmp/pd
find
.
-name
"*.pd_linux"
-exec
rm
{}
\;
foreach i
(
`
find
.
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
-o
-name
"*.html"
`
)
foreach i
(
`
find
.
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
\
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
\
-o
-name
"*.html"
|
grep
-v
asio |
grep
-v
portmidi |
grep
-v
portaudio
\
|
grep
-v
include/X11
`
)
textconvert u w <
$i
>
/tmp/xxx
mv
/tmp/xxx
$i
end
foreach i
(
`
find lib/asio
-name
"*.c"
-o
-name
"*.h"
-o
-name
"*.cpp"
-o
-name
"make*"
-o
-name
"*.txt"
-o
-name
"*.pd"
-o
-name
"*.htm"
-o
-name
"*.html"
`
)
echo
FOO-----
$i
textconvert w u <
$i
>
/tmp/xxx
textconvert u w < /tmp/xxx
>
$i
end
cd
..
rm
-f
pd.zip
zip
-q
-r
pd.zip pd
...
...
src/makefile.nt
View file @
453d733f
...
...
@@ -2,17 +2,23 @@
all
:
pd gui ..
\b
in
\p
d.tk ..
\b
in
\p
dsend.exe ..
\b
in
\p
dreceive.exe
VC
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio
\V
C98"
VCSDK
=
"C:
\P
rogram Files
\M
icrosoft SDKs
\W
indows
\v
6.0A"
VC9
=
"C:
\P
rogram Files
\M
icrosoft Visual Studio 9.0
\V
C"
#VC="\Program Files\DevStudio\Vc"
INCLUDE
=
-I
.
\
-I
..
\T
cl
\i
nclude
-I
\D
XSDK
\i
nclude
-I
$(VC)
\i
nclude
INCLUDE
=
-I
.
\
-I
..
\T
cl
\i
nclude
-I
\D
XSDK
\i
nclude
-I
$(VC9)
\I
nclude
\
-I
$(VCSDK)
\I
nclude
LDIR
=
$(VC)
\l
ib
LDIR
=
$(VCSDK)
\l
ib
LD2
=
$(VC9)
\l
ib
LIB
=
/NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel
\
/NODEFAULTLIB:uuid
\
$(LDIR)
\l
ibc.lib
$(LDIR)
\o
ldnames.lib
$(LDIR)
\k
ernel32.lib
\
LIB
=
/NODEFAULTLIB:libcmt /NODEFAULTLIB:oldnames /NODEFAULTLIB:libc
\
/NODEFAULTLIB:uuid
$(LDIR)
\k
ernel32.lib
\
$(LDIR)
\w
sock32.lib
$(LDIR)
\w
inmm.lib
$(LDIR)
\a
dvapi32.lib
\
$(LDIR)
\s
etupapi.lib ..
\b
in
\p
threadVC.lib
$(LDIR)
\s
etupapi.lib ..
\b
in
\p
threadVC.lib
\
$(LD2)
\l
ibcmt.lib
$(LD2)
\o
ldnames.lib
# \
GLIB
=
$(LIB)
..
\b
in
\t
cl84.lib ..
\b
in
\t
k84.lib
CFLAGS
=
/nologo /W3 /DMSW /DNT /DPD /DPD_INTERNAL /DWIN32 /DWINDOWS /Ox
\
...
...
@@ -97,11 +103,11 @@ pd: ..\bin\pd.exe ..\bin\pd.com
gui
:
..
\b
in
\p
dtcl.dll
..\bin\pd.exe
:
s_entry.obj ..
\b
in
\p
d.lib
link
$(LFLAGS)
/
out
:..
\b
in
\p
d.exe /INCREMENTAL:NO s_entry.obj
\
link
$(LFLAGS)
/
OUT
:..
\b
in
\p
d.exe /INCREMENTAL:NO s_entry.obj
\
..
\b
in
\p
d.lib
$(LIB)
$(ASIOLIB)
..\bin\pd.dll ..\bin\pd.lib
:
$(OBJC) $(OBJASIO)
link
$(LFLAGS)
/dll /export:sys_main /out:..
\b
in
\p
d.dll
$(OBJC)
\
link
/DLL /OUT:..
\b
in
\p
d.dll /EXPORT:sys_main
$(LFLAGS)
$(OBJC)
\
$(OBJASIO)
$(LIB)
$(ASIOLIB)
..\bin\pdtcl.dll
:
t_tkcmd.obj
...
...
src/s_entry.c
View file @
453d733f
...
...
@@ -23,6 +23,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
{
printf
(
"caught an exception; stopping
\n
"
);
}
return
(
0
);
}
#else
/* not _MSC_VER ... */
...
...
src/s_inter.c
View file @
453d733f
...
...
@@ -1237,7 +1237,7 @@ int sys_startgui(const char *guidir)
sys_guisock
=
accept
(
xsock
,
(
struct
sockaddr
*
)
&
server
,
(
socklen_t
*
)
&
len
);
#ifdef OOPS
close
(
xsock
);
sys_
close
socket
(
xsock
);
#endif
if
(
sys_guisock
<
0
)
sys_sockerror
(
"accept"
);
if
(
sys_verbose
)
...
...
@@ -1292,7 +1292,7 @@ void glob_quit(void *dummy)
sys_vgui
(
"exit
\n
"
);
if
(
!
sys_nogui
)
{
close
(
sys_guisock
);
sys_
close
socket
(
sys_guisock
);
sys_rmpollfn
(
sys_guisock
);
}
sys_bail
(
0
);
...
...
src/s_stuff.h
View file @
453d733f
...
...
@@ -286,9 +286,6 @@ void sys_save_audio_params(
typedef
void
(
*
t_printhook
)(
const
char
*
s
);
extern
t_printhook
sys_printhook
;
/* set this to override printing */
extern
int
sys_printtostderr
;
#ifdef MSW
#define vsnprintf _vsnprintf
/* jsarlo -- alias this name for msw */
#endif
/* jsarlo { */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment