Filename Extensions in MPW

Most of the MPW environment takes no account of filename extensions, since normal MacOS file typing still applies: all source files have type “TEXT”, 68K object files have type “OBJ ”, PowerPC object files have type “XCOF” and so on, so compilers, linkers and all the rest of system need never be in any doubt over what types of files they’re dealing with, regardless of what it’s called.

The only exception is the Make tool, which uses name suffixes to decide what build rules to apply. Thus, if a rule in a Makefile refers to a file called Fred.c.x, Make knows that it must look for a file called Fred.c and pass that to the MrC compiler to produce the needed file.

Created by LDO 2000 July 2.

Back to MPW Intro