2001-06-20 03:09:38 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
|
|
|
# $RCSfile: pstrules.mk,v $
|
|
|
|
#
|
2002-03-28 09:50:41 -06:00
|
|
|
# $Revision: 1.20 $
|
2001-06-20 03:09:38 -05:00
|
|
|
#
|
2002-03-28 09:50:41 -06:00
|
|
|
# last change: $Author: hjs $ $Date: 2002-03-28 16:50:41 $
|
2001-06-20 03:09:38 -05:00
|
|
|
#
|
|
|
|
# The Contents of this file are made available subject to the terms of
|
|
|
|
# either of the following licenses
|
|
|
|
#
|
|
|
|
# - GNU Lesser General Public License Version 2.1
|
|
|
|
# - Sun Industry Standards Source License Version 1.1
|
|
|
|
#
|
|
|
|
# Sun Microsystems Inc., October, 2000
|
|
|
|
#
|
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2000 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License version 2.1, as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Sun Industry Standards Source License Version 1.1
|
|
|
|
# =================================================
|
|
|
|
# The contents of this file are subject to the Sun Industry Standards
|
|
|
|
# Source License Version 1.1 (the "License"); You may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of the
|
|
|
|
# License at http://www.openoffice.org/license.html.
|
|
|
|
#
|
|
|
|
# Software provided under this License is provided on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
|
|
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
|
|
|
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
|
|
|
# See the License for the specific provisions governing your rights and
|
|
|
|
# obligations concerning the Software.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
|
|
|
#
|
|
|
|
# Copyright: 2000 by Sun Microsystems, Inc.
|
|
|
|
#
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s): _______________________________________
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#*************************************************************************
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++ svxlight rules +++++++++++++++++++++++++++++++++++++
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2001-11-21 10:17:23 -06:00
|
|
|
.IF "$(SVXLIGHT)"=="TRUE"
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(SVXLIGHTOBJFILES)"!=""
|
|
|
|
|
|
|
|
SVXLIGHTDEFS=-DSVX_LIGHT
|
|
|
|
|
|
|
|
$(OBJ)$/sxl_%.obj : %.cxx
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
.IF "$(SPEW)"!=""
|
|
|
|
@+-spew x:\er\stardiv.spw
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/sxl_$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ELSE
|
|
|
|
.IF "$(COM)"=="BLC"
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) @$(mktmp $(CFLAGS) $(CFLAGSCXX) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/sxl_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/sxl_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.ENDIF # "$(SVXLIGHTOBJFILES)"!=""
|
|
|
|
|
|
|
|
.IF "$(SVXLIGHTSLOFILES)"!=""
|
|
|
|
|
2001-09-05 04:07:45 -05:00
|
|
|
SVXLIGHTDEFS=-DSVX_LIGHT
|
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
$(SLO)$/sxl_%.obj : %.cxx
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
.IF "$(SPEW)"!=""
|
|
|
|
@+-spew x:\er\stardiv.spw
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/sxl_$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ELSE
|
|
|
|
.IF "$(COM)"=="BLC"
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) @$(mktmp $(CFLAGS) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/sxl_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(SVXLIGHTDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/sxl_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.ENDIF # "$(SVXLIGHTSLOFILES)"!=""
|
2001-11-21 10:17:23 -06:00
|
|
|
.ENDIF # "$(SVXLIGHT)"=="TRUE"
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++ second_build rules +++++++++++++++++++++++++++++++++++++
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
.IF "$(SECOND_BUILD)"!=""
|
2001-02-02 05:01:50 -06:00
|
|
|
.IF "$($(SECOND_BUILD)_OBJFILES)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
#$(SECOND_BUILD)CDEFS=-DSVX_LIGHT
|
|
|
|
|
|
|
|
$(OBJ)$/$(SECOND_BUILD)_%.obj : %.cxx
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
.IF "$(SPEW)"!=""
|
|
|
|
@+-spew x:\er\stardiv.spw
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$(SECOND_BUILD)_$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ELSE
|
|
|
|
.IF "$(COM)"=="BLC"
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) @$(mktmp $(CFLAGS) $(CFLAGSCXX) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
$(OBJ)$/$(SECOND_BUILD)_%.obj : %.c
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
.IF "$(TEST)"!=""
|
2001-10-19 07:03:25 -05:00
|
|
|
$(cc) $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$(SECOND_BUILD)_$*.o $*.c
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(cc) $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$(SECOND_BUILD)_$*.o $*.c
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ENDIF
|
|
|
|
.ELSE
|
|
|
|
.IF "$(GUI)"=="MAC"
|
|
|
|
@$(RM) $@
|
2001-10-19 07:03:25 -05:00
|
|
|
$(cc) $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(shell $(UNIX2MACPATH) $@ $*.c)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2001-10-19 07:03:25 -05:00
|
|
|
@+$(TYPE) $(mktmp $(CC) $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c )
|
2002-03-26 11:14:29 -06:00
|
|
|
@+$(ECHONL)
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) @$(mktmp $(CFLAGS:s/stl//) $(CFLAGSCC) $(CFLAGSOBJ) $(PCHOBJFLAGSU) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c )
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
$(SEMADEBUG)
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
2001-02-02 05:01:50 -06:00
|
|
|
.ENDIF # "$($(SECOND_BUILD)_OBJFILES)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2001-02-02 05:01:50 -06:00
|
|
|
.IF "$($(SECOND_BUILD)_SLOFILES)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
$(SLO)$/$(SECOND_BUILD)_%.obj : %.cxx
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
.IF "$(SPEW)"!=""
|
|
|
|
@+-spew x:\er\stardiv.spw
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$(SECOND_BUILD)_$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ELSE
|
|
|
|
.IF "$(COM)"=="BLC"
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) @$(mktmp $(CFLAGS) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(PCHSLOFLAGSU) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
$(SLO)$/$(SECOND_BUILD)_%.obj : %.c
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@$(RM) $@ $(@:s/.obj/.o/)
|
2001-10-19 07:03:25 -05:00
|
|
|
$(cc) $(CFLAGS:s/stl//) $(CFLAGSCC) $(PCHSLOFLAGSU) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$(SECOND_BUILD)_$*.o $*.c
|
2000-09-20 08:43:26 -05:00
|
|
|
+if ( -e $(@:s/.obj/.o/)) $(TOUCH) $@
|
|
|
|
.ELSE
|
|
|
|
.IF "$(GUI)"=="MAC"
|
|
|
|
@$(RM) $@
|
2001-10-19 07:03:25 -05:00
|
|
|
$(cc) $(CFLAGS:s/stl//) $(CFLAGSCC) $(PCHSLOFLAGSU) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(shell $(UNIX2MACPATH) $@ $*.c)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@+if exist $@ $(RM) /q $@ >& nul
|
|
|
|
.IF "$(COM)"=="GCC"
|
2001-10-19 07:03:25 -05:00
|
|
|
$(CC) $(CFLAGS:s/stl//) $(CFLAGSCC) $(PCHSLOFLAGSU) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$(SECOND_BUILD)_$*.obj $*.c
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2001-10-19 07:03:25 -05:00
|
|
|
+$(TYPE) $(mktmp $(CFLAGS:s/stl//) $(CFLAGSCC) $(PCHSLOFLAGSU) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$(SECOND_BUILD)_$*.obj $*.c )
|
|
|
|
$(CC) @$(mktmp $(CFLAGS:s/stl//) $(CFLAGSCC) $(PCHSLOFLAGSU) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$(SECOND_BUILD)_$*.obj $*.c )
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
2001-02-02 05:01:50 -06:00
|
|
|
.ENDIF # "$($(SECOND_BUILD)_SLOFILES)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF # "$(SECOND_BUILD)"!=""
|
|
|
|
|
|
|
|
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++ srcipting rules ++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
.IF "$(PARFILES)"!=""
|
|
|
|
ALLPARFILES=$(foreach,i,$(PARFILES) $(foreach,j,$(SCP_PRODUCT_TYPE) $(PAR)$/$j$/$i ))
|
|
|
|
|
|
|
|
SCP_PRODUCT_TYPE*=FAT
|
|
|
|
|
|
|
|
$(PAR)$/%.par :
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo Making: $@
|
2001-02-02 05:01:50 -06:00
|
|
|
@+-$(MKDIR) $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))} >& $(NULLDEV)
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(GUI)"=="OS2"
|
2001-04-26 05:18:43 -05:00
|
|
|
$(CC) /P+ /Pe+ /Pd+ $(INCLUDE) -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) $(SCPDEFS) -DDLLSUFFIX=$(DLLSUFFIX) $(*:b).scp > $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="WNT"
|
2001-10-17 08:15:56 -05:00
|
|
|
cpplcc -+ -P $(INCLUDE) -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) $(SCPDEFS) -DDLLSUFFIX=$(DLLSUFFIX) $(*:b).scp > $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
.IF "$(OS)"=="SOLARIS"
|
2001-04-26 05:18:43 -05:00
|
|
|
cpp.lcc -+ -P -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) $(SCPDEFS) -DDLLSUFFIX=$(DLLSUFFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC) $(*:b).scp > $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2001-10-17 08:15:56 -05:00
|
|
|
cpp.lcc -+ -P -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) $(SCPDEFS) -DDLLSUFFIX=$(DLLSUFFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC) $(*:b).scp > $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
2001-02-02 05:01:50 -06:00
|
|
|
+scpcomp -s $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre -o $@
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
.ENDIF # "$(PARFILES)"!=""
|
|
|
|
|
|
|
|
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++ cppumaker rules ++++++++++++++++++++++++++++++++++++++++
|
|
|
|
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
$(UNOUCROUT)$/%.hpp : $(UNOUCRDEP)
|
2002-03-28 09:50:41 -06:00
|
|
|
+$(CPPUMAKER) $(CPPUMAKERFLAGS) -B$(UNOUCRBASE) -O$(UNOUCROUT) -T{$(subst,$/,. $(subst,$(UNOUCROUT)$/, $(@:db)))} $(UNOUCRRDB)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
$(UNOUCROUT)$/%.hdl : $(UNOUCRDEP)
|
2002-03-28 09:50:41 -06:00
|
|
|
+$(CPPUMAKER) $(CPPUMAKERFLAGS) -B$(UNOUCRBASE) -O$(UNOUCROUT) -T{$(subst,$/,. $(subst,$(UNOUCROUT)$/, $(@:db)))} $(UNOUCRRDB)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2000-10-31 04:16:54 -06:00
|
|
|
|
2002-02-13 09:58:18 -06:00
|
|
|
.IF "$(TESTDIR)"!=""
|
|
|
|
|
|
|
|
# workaround for strange dmake bug:
|
|
|
|
# if the previous block was a rule or a target, "\#" isn't recognized
|
|
|
|
# as an escaped "#". if it was an assignment, escaping works...
|
|
|
|
some_unique_variable_name:=1
|
|
|
|
|
|
|
|
.IF "$(OS)" == "WNT"
|
|
|
|
REGEXP:="s/^[\#].*$$//"
|
|
|
|
.ELSE
|
|
|
|
REGEXP:='s/^[\#].*$$//'
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
$(MISC)$/%.exp : sce$/%.sce
|
|
|
|
@+-$(RM) $@ >& $(NULLDEV)
|
|
|
|
@+-$(RM) $(@:d)$(@:b).tst >& $(NULLDEV)
|
|
|
|
+$(TYPE) $< | sed $(REGEXP) | sed "s/^/test_/" > $(@:d)$(@:b).tst
|
|
|
|
+$(TYPE) $(@:d)$(@:b).tst | sed "/test_./ w $@"
|
|
|
|
|
|
|
|
.ENDIF # "$(TESTDIR)"!=""
|