$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" ) {
$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" ) {
#!################################################################################
#${
#! 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
}
foreach $file (sort keys %wxGeneric) {
+ #! skip generic files not required for the wxMotif port
next if $wxGeneric{$file} =~ /\bX\b/;
$file2 = $file;
$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) {
$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/) ) {
$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) {
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 %wxHTMLINCLUDE) {
$project{"WXHTML_HEADERS"} .= "html/" . $file . " "
}
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@
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
MSW_HEADERS = \
#$ ExpandList("WXMSW_HEADERS");
+PM_HEADERS = \
+ #$ ExpandList("WXOS2PM_HEADERS");
+
UNIX_HEADERS = \
#$ ExpandList("WXUNIX_HEADERS");
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");
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
- @$(RM) lex.yy.c
+ @$(RM) @LEX_STEM@.c
-include $(DEPFILES)