Skip to content

Instantly share code, notes, and snippets.

@steventroughtonsmith
Created January 15, 2015 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steventroughtonsmith/2b672ee795c86632ba83 to your computer and use it in GitHub Desktop.
Save steventroughtonsmith/2b672ee795c86632ba83 to your computer and use it in GitHub Desktop.
MPW --ram Bug
#include <stdio.h>
int main()
{
printf("Example\n");
}
SymOptions = -sym Full
SymOpt = $(SymOptions)
COptions = -w 17 -proto strict $(SymOpt) -D OLDROUTINELOCATIONS=0
MrCOptions = $(SymOpt) -D OLDROUTINELOCATIONS=0
all : Example
%.o: %.c
mpw SC $< -o $@ $(COptions)
Example : Example.o
mpw --ram=17M Link -d -c 'MPS ' -t MPST $(SymOpt) -mf \
Example.o \
"{CLibraries}"StdClib.o \
"{Libraries}"Stubs.o \
"{Libraries}"IntEnv.o \
"{Libraries}"MacRuntime.o \
"{Libraries}"Interface.o \
"{Libraries}"ToolLibs.o \
-o $@
clean:
rm Example Example.o Example.SYM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment