Created
January 15, 2015 19:53
-
-
Save steventroughtonsmith/2b672ee795c86632ba83 to your computer and use it in GitHub Desktop.
MPW --ram Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
printf("Example\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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