SN: Added support for compiling wxPM with EMX using Unix-Makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5329
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
$wxMOTIF{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "R" ) {
$wxGTK{$fields[0]} = $fields[2];
$wxMOTIF{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "R" ) {
$wxGTK{$fields[0]} = $fields[2];
+ } elsif ( $fields[1] eq "O" ) {
+ $wxOS2PM{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "H" ) {
$wxHTML{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "U" ) {
} elsif ( $fields[1] eq "H" ) {
$wxHTML{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "U" ) {
$wxMSWINCLUDE{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "K" ) {
$wxGTKINCLUDE{$fields[0]} = $fields[2];
$wxMSWINCLUDE{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "K" ) {
$wxGTKINCLUDE{$fields[0]} = $fields[2];
+ } elsif ( $fields[1] eq "2" ) {
+ $wxOS2PMINCLUDE{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "S" ) {
$wxUNIXINCLUDE{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "N" ) {
} elsif ( $fields[1] eq "S" ) {
$wxUNIXINCLUDE{$fields[0]} = $fields[2];
} elsif ( $fields[1] eq "N" ) {
# S Socket file (currently doesn't compile under Win16 nor with GNU)
# R Not required for the GTK port
# X Not required for the Motif port
# S Socket file (currently doesn't compile under Win16 nor with GNU)
# R Not required for the GTK port
# X Not required for the Motif port
+# P Not required for the os2Pm port
+# (unfortunately I can't use O since that is
+# in use already - and above I can't use P :-( )
#
# WX Base header
# GTK GTK header
#
# WX Base header
# GTK GTK header
choicdgg.cpp G
colrdlgg.cpp G G
dcpsg.cpp G U
choicdgg.cpp G
colrdlgg.cpp G G
dcpsg.cpp G U
-dirdlgg.cpp G 16
-fontdlgg.cpp G G,R
-filedlgg.cpp G U,X
+dirdlgg.cpp G 16,P
+fontdlgg.cpp G G,R,P
+filedlgg.cpp G U,X,P
grid.cpp G
helpext.cpp G G
helphtml.cpp G G
grid.cpp G
helpext.cpp G G
helphtml.cpp G G
listctrl.cpp G 16
logg.cpp G
msgdlgg.cpp G G
listctrl.cpp G 16
logg.cpp G
msgdlgg.cpp G G
panelg.cpp G
printps.cpp G PS
prntdlgg.cpp G PS,U
panelg.cpp G
printps.cpp G PS
prntdlgg.cpp G PS,U
sashwin.cpp G
scrolwin.cpp G
splitter.cpp G
sashwin.cpp G
scrolwin.cpp G
splitter.cpp G
numdlgg.cpp G
tbarsmpl.cpp G
textdlgg.cpp G
numdlgg.cpp G
tbarsmpl.cpp G
textdlgg.cpp G
window.h 2
fontdlg.h 2
msgdlg.h 2
window.h 2
fontdlg.h 2
msgdlg.h 2
colour.h 2
frame.h 2
setup0.h 2
colour.h 2
frame.h 2
setup0.h 2
#!################################################################################
#${
#! include the code which parses filelist.txt file and initializes
#!################################################################################
#${
#! include the code which parses filelist.txt file and initializes
- #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes.
+ #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix, %wxGTK, %wxMOTIF and
+ #! %wxOS2PM hashes.
IncludeTemplate("filelist.t");
#! Generic
IncludeTemplate("filelist.t");
#! Generic
}
foreach $file (sort keys %wxGeneric) {
}
foreach $file (sort keys %wxGeneric) {
+ #! skip generic files not required for the wxMotif port
next if $wxGeneric{$file} =~ /\bX\b/;
$file2 = $file;
next if $wxGeneric{$file} =~ /\bX\b/;
$file2 = $file;
$project{"WXMOTIF_GENERICDEPS"} .= $file2 . " "
}
$project{"WXMOTIF_GENERICDEPS"} .= $file2 . " "
}
+ foreach $file (sort keys %wxGeneric) {
+ #! skip generic files not required for the wxPM port
+ next if $wxGeneric{$file} =~ /\bP\b/;
+
+ $file2 = $file;
+ $file =~ s/cp?p?$/\o/;
+ $file2 =~ s/cp?p?$/\d/;
+ $project{"WXOS2PM_GENERICOBJS"} .= $file . " ";
+ $project{"WXOS2PM_GENERICDEPS"} .= $file2 . " "
+ }
+
#! Base
foreach $file (sort keys %wxBase) {
#! Base
foreach $file (sort keys %wxBase) {
$project{"WXMOTIF_COMMONOBJS"} .= $fileobj . " ";
$project{"WXMOTIF_COMMONDEPS"} .= $filedep . " "
}
$project{"WXMOTIF_COMMONOBJS"} .= $fileobj . " ";
$project{"WXMOTIF_COMMONDEPS"} .= $filedep . " "
}
+ if ( $wxCommon{$file} !~ /\bP\b/ ) { #! unless not for OS2PM
+ $project{"WXOS2PM_COMMONOBJS"} .= $fileobj . " ";
+ $project{"WXOS2PM_COMMONDEPS"} .= $filedep . " ";
+ }
#! ODBC needs extra files (sql*.h) so not compiled by default.
if ( (file !~ /^odbc\./) && ($wxCommon{$file} !~ /\b(16)\b/) ) {
#! ODBC needs extra files (sql*.h) so not compiled by default.
if ( (file !~ /^odbc\./) && ($wxCommon{$file} !~ /\b(16)\b/) ) {
$project{"WXMOTIF_GUIDEPS"} .= $file2 . " "
}
$project{"WXMOTIF_GUIDEPS"} .= $file2 . " "
}
+ foreach $file (sort keys %wxOS2PM) {
+ $file2 = $file;
+ $file =~ s/cp?p?$/\o/;
+ $file2 =~ s/cp?p?$/\d/;
+ $project{"WXOS2PM_GUIOBJS"} .= $file . " ";
+ $project{"WXOS2PM_GUIDEPS"} .= $file2 . " "
+ }
+
#! others
foreach $file (sort keys %wxHTML) {
#! others
foreach $file (sort keys %wxHTML) {
foreach $file (sort keys %wxGTKINCLUDE) {
$project{"WXGTK_HEADERS"} .= "gtk/" . $file . " "
}
foreach $file (sort keys %wxGTKINCLUDE) {
$project{"WXGTK_HEADERS"} .= "gtk/" . $file . " "
}
+
+ foreach $file (sort keys %wxOS2PMINCLUDE) {
+ $project{"WXOS2PM_HEADERS"} .= "os2/" . $file . " "
+ }
foreach $file (sort keys %wxMSWINCLUDE) {
$project{"WXMSW_HEADERS"} .= "msw/" . $file . " "
}
foreach $file (sort keys %wxMSWINCLUDE) {
$project{"WXMSW_HEADERS"} .= "msw/" . $file . " "
}
foreach $file (sort keys %wxHTMLINCLUDE) {
$project{"WXHTML_HEADERS"} .= "html/" . $file . " "
}
foreach $file (sort keys %wxHTMLINCLUDE) {
$project{"WXHTML_HEADERS"} .= "html/" . $file . " "
}
VP10 = @top_srcdir@/src/zlib
VP11 = @top_srcdir@/src/iodbc
VP10 = @top_srcdir@/src/zlib
VP11 = @top_srcdir@/src/iodbc
-VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10):$(VP11)
+VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11)
top_srcdir = @top_srcdir@
prefix = @prefix@
top_srcdir = @top_srcdir@
prefix = @prefix@
GTKDIR = $(WXDIR)/src/gtk
MOTIFDIR = $(WXDIR)/src/motif
MSWDIR = $(WXDIR)/src/msw
GTKDIR = $(WXDIR)/src/gtk
MOTIFDIR = $(WXDIR)/src/motif
MSWDIR = $(WXDIR)/src/msw
+PMDIR = $(WXDIR)/src/os2
ODBCDIR = $(WXDIR)/src/iodbc
INCDIR = $(WXDIR)/include
SAMPDIR = $(WXDIR)/samples
ODBCDIR = $(WXDIR)/src/iodbc
INCDIR = $(WXDIR)/include
SAMPDIR = $(WXDIR)/samples
MSW_HEADERS = \
#$ ExpandList("WXMSW_HEADERS");
MSW_HEADERS = \
#$ ExpandList("WXMSW_HEADERS");
+PM_HEADERS = \
+ #$ ExpandList("WXOS2PM_HEADERS");
+
UNIX_HEADERS = \
#$ ExpandList("WXUNIX_HEADERS");
UNIX_HEADERS = \
#$ ExpandList("WXUNIX_HEADERS");
MSW_GUIDEPS = \
#$ ExpandList("WXMSW_GUIDEPS");
MSW_GUIDEPS = \
#$ ExpandList("WXMSW_GUIDEPS");
+PM_GENERICOBJS = \
+ #$ ExpandList("WXOS2PM_GENERICOBJS");
+
+PM_GENERICDEPS = \
+ #$ ExpandList("WXOS2PM_GENERICDEPS");
+
+PM_COMMONOBJS = \
+ parser.o \
+ #$ ExpandList("WXOS2PM_COMMONOBJS");
+
+PM_COMMONDEPS = \
+ parser.d \
+ #$ ExpandList("WXOS2PM_COMMONDEPS");
+
+PM_GUIOBJS = \
+ #$ ExpandList("WXOS2PM_GUIOBJS");
+
+PM_GUIDEPS = \
+ #$ ExpandList("WXOS2PM_GUIDEPS");
+
BASE_OBJS = \
#$ ExpandList("BASE_OBJS");
BASE_OBJS = \
#$ ExpandList("BASE_OBJS");
lexer.c: $(COMMDIR)/lexer.l
$(LEX) $(COMMDIR)/lexer.l
lexer.c: $(COMMDIR)/lexer.l
$(LEX) $(COMMDIR)/lexer.l
- @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
+ @sed -e "s;$(COMMDIR)/@LEX_STEM@.c;lexer.l;g" < @LEX_STEM@.c | \
sed -e "s/yy/PROIO_yy/g" | \
sed -e "s/input/PROIO_input/g" | \
sed -e "s/unput/PROIO_unput/g" > lexer.c
sed -e "s/yy/PROIO_yy/g" | \
sed -e "s/input/PROIO_input/g" | \
sed -e "s/unput/PROIO_unput/g" > lexer.c