office-gobmx/solenv/inc/rules.mk

699 lines
29 KiB
Makefile
Raw Normal View History

2000-10-30 06:14:55 -06:00
#*************************************************************************
#
# OpenOffice.org - a multi-platform office productivity suite
2000-10-30 06:14:55 -06:00
#
# $RCSfile: rules.mk,v $
2000-10-30 06:14:55 -06:00
#
# $Revision: 1.70 $
2000-10-30 06:14:55 -06:00
#
# last change: $Author: obo $ $Date: 2006-09-15 13:58:08 $
2000-10-30 06:14:55 -06:00
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
2000-10-30 06:14:55 -06:00
#
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2005 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
2000-10-30 06:14:55 -06:00
#
# 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.
2000-10-30 06:14:55 -06:00
#
# 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.
2000-10-30 06:14:55 -06:00
#
# 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
2000-10-30 06:14:55 -06:00
#
#*************************************************************************
2000-09-20 08:43:26 -05:00
MKFILENAME:=RULES.MK
$(OBJ)$/%.obj : %.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
.IF "$(noadjust)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(noadjust)"==""
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx )
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
2001-03-08 09:31:39 -06:00
$(OBJ)$/%.obj : %.cpp
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cpp
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2001-03-08 09:31:39 -06:00
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
2001-03-08 09:31:39 -06:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp
2001-03-08 09:31:39 -06:00
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp )
2001-03-08 09:31:39 -06:00
.ENDIF
.ENDIF
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : %.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E $(CFLAGSINCXX)$(PWD)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CAPTURE_COMMAND) $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx $(CAPTURE_OUTPUT)
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" && "$(CAPTURE_COMMAND)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE # "$(GUI)"=="UNX"
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx ) $(CAPTURE_OUTPUT)
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx )
.ENDIF # "$(GUI)"=="UNX"
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : %.cpp
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E $(CFLAGSINCXX)$(PWD)$/$*.cpp
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cpp
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp )
2000-09-20 08:43:26 -05:00
.ENDIF
$(SLO)$/%.obj : $(MISC)$/%.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(MISC)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx )
2000-09-20 08:43:26 -05:00
.ENDIF
$(OBJ)$/%.obj : $(MISC)$/%.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) -E $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(MISC)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx )
2000-09-20 08:43:26 -05:00
.ENDIF
$(OBJ)$/%.obj : %.c
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.c
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $*.c )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ELSE
+-@echo Cflags: $(CFLAGS) $(INCLUDE)
$(CC) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $*.c )
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
$(OBJ)$/%.obj : $(MISC)$/%.c
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(MISC)$/$*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(MISC)$/$*.c )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(MISC)$/$*.c )
2000-09-20 08:43:26 -05:00
.ENDIF
$(SLO)$/%.obj : $(MISC)$/%.c
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(MISC)$/$*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
@+$(TYPE) $(mktmp $(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(MISC)$/$*.c )
2002-03-14 05:46:17 -06:00
@+$(ECHONL)
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(MISC)$/$*.c
2000-09-20 08:43:26 -05:00
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(MISC)$/$*.c )
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
$(SLO)$/%.obj : %.c
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@+-$(RM) $@ >& $(NULLDEV)
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $*.c )
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
# Objective-C files
$(OBJ)$/%.obj : %.m
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
.IF "$(TEST)"!=""
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.m
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.m
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(OBJ)$/%.obj : $(MISC)$/%.m
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(MISC)$/$*.m
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(SLO)$/%.obj : $(MISC)$/%.m
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(MISC)$/$*.m
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(SLO)$/%.obj : %.m
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $*.m
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# dependencies c / c++
2001-02-09 11:29:14 -06:00
.IF "$(verbose)"==""
noout=>& $(NULLDEV)
.ENDIF
$(MISC)$/s_%.dpcc : %.c
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : %.c
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2002-03-14 05:46:17 -06:00
@+$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
2002-03-14 05:46:17 -06:00
@echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/s_%.dpcc : %.cxx
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : %.cxx
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/s_%.dpcc : %.cpp
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : %.cpp
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/s_%.dpcc : $(MISC)$/%.c
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2002-03-26 11:15:34 -06:00
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : $(MISC)$/%.c
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2002-03-26 11:15:34 -06:00
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/s_%.dpcc : $(MISC)$/%.cxx
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2002-03-26 11:15:34 -06:00
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : $(MISC)$/%.cxx
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2002-03-26 11:15:34 -06:00
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
# dependencies objective-c
$(MISC)$/s_%.dpcc : %.m
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : %.m
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/s_%.dpcc : $(MISC)$/%.m
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
.IF "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/o_%.dpcc : $(MISC)$/%.m
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
.IF "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
2001-02-09 04:57:55 -06:00
# dependency dummy for *.s files
$(MISC)$/s_%.dpcc : %.s
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
2001-02-09 04:57:55 -06:00
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(SLO)$/ $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
2001-02-09 04:57:55 -06:00
@+echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
2001-02-09 04:57:55 -06:00
2001-02-12 09:17:43 -06:00
# generated source files.
$(MISC)$/o_%.dpcc :
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2001-02-13 04:32:18 -06:00
@+echo $@ : $(OBJ)$/$(@:b:^"__":s/__o_//).obj > $@
2001-02-12 09:17:43 -06:00
$(MISC)$/s_%.dpcc :
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
2001-02-13 04:32:18 -06:00
@+echo $@ : $(SLO)$/$(@:b::^"__":s/__s_//).obj > $@
2001-02-09 04:57:55 -06:00
# dependencies script files
2001-02-12 09:17:43 -06:00
$(MISC)$/%.dpsc :
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
@+-$(RM) $@ >& $(NULLDEV)
@+-$(MKDIR) $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))} >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/ -o.par -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(*:b).scp > $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
@+echo $@ : $(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).par >> $@
@+echo $(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).par : $(*:b).scp >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
2001-02-05 12:59:43 -06:00
# dependencies rc files (native resources for windows)
$(MISC)$/%.dprc :
2001-02-09 11:29:14 -06:00
@echo ------------------------------ $(noout)
@echo Making: $@ $(noout)
2001-02-05 12:59:43 -06:00
@+-$(RM) $@ >& $(NULLDEV)
@$(MAKEDEPEND) -f - -p$(RES)$/ -o.res $(RCLANGFLAGS_{$(subst,$(@:d:d:d:u), $(@:d:d:u))}:u:s/ //) $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) -I$(SOLARENV)$/inc $(*:b).rc >> $@
2001-02-20 12:07:04 -06:00
.IF "$(LAZY_DEPS)"==""
# @+echo $@ : $(RES)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).res >> $@
@+echo $@ : $(RES)$/$(*:b).res >> $@
2001-02-20 12:07:04 -06:00
.ELSE # "$(LAZY_DEPS)"==""
@+echo LAZY_DEPS=were_used_to_generate >> $@
.ENDIF # "$(LAZY_DEPS)"==""
$(MISC)$/%.dpr :
2000-09-20 08:43:26 -05:00
@echo ------------------------------
.IF "$(nodep)"==""
2000-09-20 08:43:26 -05:00
@echo Making: $@
+-$(RM) $@ >& $(NULLDEV)
dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) NO_HIDS=true make_srs_deps=true $(DEPSRSFILES)
+-$(TYPE) $(MISC)$/$(PWD:f).*.dprr >> $@
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(MISC)$/%.dpz :
@echo ------------------------------
.IF "$(nodep)"==""
2000-09-20 08:43:26 -05:00
@echo Making: $@
2004-01-21 10:43:29 -06:00
@+-$(RM) $@ >& $(NULLDEV)
# line too long on 4nt
.IF "$(USE_SHELL)"!="4nt"
+dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true $(ZIPDEPFILES)
2004-01-21 10:43:29 -06:00
.ELSE # "$(USE_SHELL)"!="4nt"
+$(TYPE) $(mktmp $(ZIPDEPFILES:s/\/\\/)) | xargs -n 20 dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true
.ENDIF # "$(USE_SHELL)"!="4nt"
$(TYPE) $(ZIPDEPFILES) $(mktmp $(NULL)) | grep -v "CVS" >> $@
+echo zipdep_langs=$(alllangiso) >> $@
@+-$(RM) $(ZIPDEPFILES) >& $(NULLDEV)
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
# Dependencies fuer java - Files
2000-09-20 08:43:26 -05:00
$(MISC)$/%.dpj :
2000-09-20 08:43:26 -05:00
@+echo Making dpj...
.IF "$(nodep)"!=""
.IF "$(GUI)"=="UNX"
@+echo > $@
.ELSE
2002-03-14 05:46:17 -06:00
@+$(ECHONL) > $@
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE # "$(ndep)"==""
.IF "$(GUI)"=="UNX"
@+echo $(shell +$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/:/ /) -i $i) $(JAVACLASSFILES)))
2000-09-20 08:43:26 -05:00
.ELSE
@+echo $(shell +$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/;/ /) -i $i) $(JAVACLASSFILES)))
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF # "$(nodep)"==""
$(SLO)$/%.obj : %.asm
@echo ------------------------------
@echo Making: $@
.IF "$(COM)"=="WTC"
$(ASM) $(AFLAGS) -D$(COM) $*.asm -fo=$(SLO)$/$*.obj
+-$(IFEXIST) $*.err $(THEN) $(RM) $*.err $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
2000-12-15 10:05:22 -06:00
.IF "$(COM)"=="MSC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)$/$*.obj $*.asm
+-$(IFEXIST) $*.err $(THEN) $(RM) $*.err $(FI)
2000-12-15 10:05:22 -06:00
.ELSE # "$(ASM)"=="ml"
@+-$(RM) $@ >& $(NULLDEV)
$(ASM) $(AFLAGS) $*.asm,$(SLO)$/$*.obj;
2000-12-15 10:05:22 -06:00
.ENDIF # "$(ASM)"=="ml"
.ENDIF "$(COM)"=="MSC"
2000-09-20 08:43:26 -05:00
.ENDIF
$(OBJ)$/%.obj : %.asm
@echo ------------------------------
@echo Making: $@
2000-12-15 10:05:22 -06:00
.IF "$(COM)"=="MSC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)$/$*.obj $*.asm
+-$(IFEXIST) $*.err $(THEN) $(RM) $*.err $(FI)
2000-12-15 10:05:22 -06:00
.ELSE # "$(ASM)"=="ml"
@+$(IFEXIST) $@ $(THEN) $(RM) $@ >& $(NULLDEV) $(FI)
$(ASM) $(AFLAGS) $*.asm,$(OBJ)$/$*.obj;
2000-12-15 10:05:22 -06:00
.ENDIF # "$(ASM)"=="ml"
.ENDIF "$(COM)"=="MSC"
2000-09-20 08:43:26 -05:00
#
# keine rule fuer *.java - abh. innerhalb eines packages!
#
#$(CLASSDIR)$/$(PACKAGE)$/%.class : %.java
#.IF "$(use_jdep)"!=""
# $(JAVAC) -depend $(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) $<
#.ELSE
# $(JAVAC) $(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) $<
#.ENDIF
.SOURCE.idl : . $(SOLARVER)$/$(INPATH)$/idl$/remote $(SOLARVER)$/$(INPATH)$/idl $(SOLARVER)$/$(INPATH)$/idl$(UPDMINOREXT)$/$(PACKAGE)
$(OUT)$/ucr$/$(IDLPACKAGE)$/%.urd : %.idl
+$(IDLC) @$(mktmp $(UNOIDLDEFS) $(TF_PACKAGES_DEF) $(UNOIDLINCEXTRA) $(UNOIDLINC) -O$(OUT)$/ucr$/$(IDLPACKAGE) $< )
$(OUT)$/ucrdoc$/$(IDLPACKAGE)$/%.urd : %.idl
+$(IDLC) @$(mktmp $(UNOIDLDEFS) $(TF_PACKAGES_DEF) $(UNOIDLINCEXTRA) $(UNOIDLINC) -C -O$(OUT)$/ucrdoc$/$(IDLPACKAGE) $< )
# generate hid files
$(SRS)$/%.hid : %.src
@echo ------------------------------
@echo Making hid $@
+$(PERL) $(SOLARENV)$/bin$/mhids.pl $*.src $(SRS) $(PRJNAME) $(CDEFS) $(INCLUDE)
2000-09-20 08:43:26 -05:00
# make *.xml descriptions available in $(MISC)
2001-08-14 03:15:43 -05:00
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml
+$(COPY) $< $@
2001-12-12 05:38:13 -06:00
# dummy rule to make sure xml file is in place when used in settings.mk
$(MISC)$/%.mk : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
2001-12-12 05:38:13 -06:00
+$(TOUCH) $@
+echo XML2MK_FILES += $(@:b) >> $@
2000-10-30 06:14:55 -06:00
#generate descriptions from xml
2001-08-14 03:15:43 -05:00
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
+xml2cmp -func $(MISC)$/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $<
2000-10-30 06:14:55 -06:00
2000-09-20 08:43:26 -05:00
#generate private rdb
$(BIN)$/%.rdb: $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
2002-04-08 11:07:13 -05:00
+$(RDBMAKER) -BUCR -O$(BIN)$/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB))
2000-09-20 08:43:26 -05:00
2000-09-21 07:12:00 -05:00
#strip dos lineends
$(MISC)$/%.sh : %.sh
@+-$(RM) -f $@ >& $(NULLDEV)
@+tr -d "\015" < $< > $@
2000-09-20 08:43:26 -05:00
$(COMMONMISC)$/$(TARGET)$/%.ulf : %.ulf
+-$(MKDIR) $(@:d)
+-$(RM) $@
$(WRAPCMD) $(ULFEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
+$(RENAME) $@.$(INPATH) $@
+-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.xrb : %.xrb
+-$(MKDIR) $(@:d)
+-$(RM) $@
$(WRAPCMD) $(XMLEX) -t xrb -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
+$(RENAME) $@.$(INPATH) $@
+-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.xrm : %.xrm
+-$(MKDIR) $(@:d)
+-$(RM) $@
$(WRAPCMD) $(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
+$(RENAME) $@.$(INPATH) $@
+-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.jlf : $$(@:db).ulf
+-$(RM) $@
$(WRAPCMD) $(ULFCONV) -o $@.$(INPATH) $<
+$(RENAME) $@.$(INPATH) $@
+-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.mlf : $$(@:db).ulf
+-$(RM) $@
@$(WRAPCMD) $(ULFCONV) -o $@.$(INPATH) -t $(SOLARBINDIR)$/msi-encodinglist.txt $<
@+$(RENAME) $@.$(INPATH) $@
@+-$(RM) $@.$(INPATH)
# dirty hack
# if local *.sdf file is missing
%.sdf:
+echo > $@