Ignore:
Timestamp:
Apr 8, 2002, 12:43:27 AM (23 years ago)
Author:
bird
Message:

Added some libs. Moved extensions. Configured new modes. Splitted clean command. Moved ALP config into separate files. Made it kind of work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.mak

    r8197 r8213  
    1 # $Id: process.mak,v 1.1 2002-04-06 20:25:04 bird Exp $
     1# $Id: process.mak,v 1.2 2002-04-07 22:43:25 bird Exp $
    22
    33#
     
    128128
    129129.SUFFIXES:
    130 .SUFFIXES: .dll .exe .$(EXT_OBJ) .c .cpp .asm .res .rc .pre-c .pre-cpp # .h .def
     130.SUFFIXES: .$(EXT_OBJ) .c .cpp .asm .$(EXT_RES) .rc .pre-c .pre-cpp # .h .def
    131131
    132132
     
    134134.asm{$(PATH_TARGET)}.$(EXT_OBJ):
    135135    @$(ECHO) Assembling $(CLRFIL)$< $(CLRRST)
    136 !if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
     136!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    137137    @$(AS) $(AS_FLAGS_SYS) $< $(AS_OBJ_OUT)$@
    138138!else
     
    142142.asm.$(EXT_OBJ):
    143143    @$(ECHO) Assembling $(CLRFIL)$< $(CLRRST)
    144 !if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
     144!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    145145    @$(AS) $(AS_FLAGS_SYS) $< $(AS_OBJ_OUT)$(PATH_TARGET)\$(@F)
    146146!else
     
    165165        $(CXX_FLAGS_SYS) \
    166166!endif
     167!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     168        $(CXX_FLAGS_IFS) \
     169!endif
     170!ifdef CXX_LST_OUT
     171        $(CXX_LST_OUT)$(PATH_TARGET)\$(@B).s \
     172!endif
    167173        $(CXX_OBJ_OUT)$@ $<
    168174
     
    181187!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
    182188        $(CXX_FLAGS_SYS) \
     189!endif
     190!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     191        $(CXX_FLAGS_IFS) \
     192!endif
     193!ifdef CXX_LST_OUT
     194        $(CXX_LST_OUT)$(PATH_TARGET)\$(@B).s \
    183195!endif
    184196        $(CXX_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
     
    201213        $(CXX_FLAGS_SYS) \
    202214!endif
     215!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     216        $(CXX_FLAGS_IFS) \
     217!endif
    203218        $(CXX_PC_2_STDOUT) $< > $@
    204219
     
    220235        $(CC_FLAGS_SYS) \
    221236!endif
     237!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     238        $(CC_FLAGS_IFS) \
     239!endif
     240!ifdef CC_LST_OUT
     241        $(CC_LST_OUT)$(PATH_TARGET)\$(@B).s \
     242!endif
    222243        $(CC_OBJ_OUT)$@ $<
    223244
     
    236257!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "SYSLIB"
    237258        $(CC_FLAGS_SYS) \
     259!endif
     260!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     261        $(CC_FLAGS_IFS) \
     262!endif
     263!ifdef CC_LST_OUT
     264        $(CC_LST_OUT)$(PATH_TARGET)\$(@B).s \
    238265!endif
    239266        $(CC_OBJ_OUT)$(PATH_TARGET)\$(@F) $<
     
    256283        $(CC_FLAGS_SYS) \
    257284!endif
     285!if "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
     286        $(CC_FLAGS_IFS) \
     287!endif
    258288        $(CC_PC_2_STDOUT) $< > $@
    259289
     
    330360    if exist $(TARGET) $(TOOL_COPY) $(TARGET) $(PATH_DLL)
    331361!endif
    332 !if "$(TARGET_MODE)" == "SYS"
     362!if "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS" || "$(TARGET_MODE)" == "IFSLIB"
    333363    if exist $(TARGET) $(TOOL_COPY) $(TARGET) $(PATH_SYS)
    334364!endif
     
    399429clean:
    400430!if "$(PATH_TARGET)" != ""              # paranoia
    401 !if "$(PATH_TARGET)" == "."
    402431    $(TOOL_RM) \
    403432        $(PATH_TARGET)\*.$(EXT_OBJ) \
     
    407436        $(PATH_TARGET)\*.$(EXT_RES) \
    408437        $(PATH_TARGET)\*.$(EXT_SYS) \
    409         $(PATH_TARGET)\*.$(EXT_LIB) \
     438        $(PATH_TARGET)\*.$(EXT_LIB)
     439    $(TOOL_RM) \
     440        $(PATH_TARGET)\*.$(EXT_IFS) \
    410441        $(PATH_TARGET)\*.map \
     442        $(PATH_TARGET)\*.s \
     443        $(PATH_TARGET)\*.lst \
    411444        $(PATH_TARGET)\*.lnk \
    412445        $(PATH_TARGET)\*.pre-c \
    413446        $(PATH_TARGET)\*.pre-cpp \
    414         $(PATH_TARGET)\*.lst
    415 !else
    416     $(TOOL_RM) \
    417         $(PATH_TARGET)\*.$(EXT_OBJ) \
    418         $(PATH_TARGET)\*.$(EXT_ILIB) \
    419         $(PATH_TARGET)\*.$(EXT_EXE) \
    420         $(PATH_TARGET)\*.$(EXT_DLL) \
    421         $(PATH_TARGET)\*.$(EXT_SYS) \
    422         $(PATH_TARGET)\*.$(EXT_RES) \
    423         $(PATH_TARGET)\*.$(EXT_LIB) \
    424         $(PATH_TARGET)\*.map \
    425         $(PATH_TARGET)\*.lnk \
    426         $(PATH_TARGET)\*.lst
    427 !endif
     447        $(PATH_TARGET)\.depend
    428448!endif
    429449!ifdef SUBDIRS
     
    439459
    440460#
    441 # EXE, DLL and SYS Targets
    442 #
    443 !if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT" || "$(TARGET_MODE)" == "SYS"
     461# EXE, DLL, SYS and IFS Targets
     462#
     463!if "$(TARGET_MODE)" == "EXE" || "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT" || "$(TARGET_MODE)" == "SYS" || "$(TARGET_MODE)" == "IFS"
    444464! if "$(TARGET_MODE)" == "DLL" || "$(TARGET_MODE)" == "CRT"
    445465TARGET_IGNORE_LINKER_WARNINGS=1
     
    458478!if "$(TARGET_MODE)" == "SYS"
    459479    @$(LINK_CMD_SYS)
     480!endif
     481!if "$(TARGET_MODE)" == "IFS"
     482    @$(LINK_CMD_IFS)
    460483!endif
    461484!if "$(TARGET_RES)" != "" && "$(RL)" != ""
     
    496519# Lib Targets.
    497520#
    498 !if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "PUBLIB" || "$(TARGET_MODE)" == "SYSLIB"
     521!if "$(TARGET_MODE)" == "LIB" || "$(TARGET_MODE)" == "PUBLIB" || "$(TARGET_MODE)" == "SYSLIB" || "$(TARGET_MODE)" == "IFSLIB"
    499522$(TARGET): $(TARGET_OBJS) $(TARGET_LNK) $(TARGET_DEPS)
    500523    @$(ECHO) Creating Library $(CLRFIL)$@ $(CLRRST)
Note: See TracChangeset for help on using the changeset viewer.