2013-07-14 22:15:56 +00:00
|
|
|
# makefile
|
|
|
|
|
2015-01-20 17:19:42 +00:00
|
|
|
MPW ?= mpw
|
|
|
|
|
2013-07-14 22:15:56 +00:00
|
|
|
# MPW 3.2
|
|
|
|
LIBS = \
|
2014-12-17 14:56:58 +00:00
|
|
|
{Libraries}Stubs.o \
|
|
|
|
{CLibraries}StdCLib.o \
|
|
|
|
{Libraries}Interface.o \
|
|
|
|
{Libraries}Runtime.o \
|
|
|
|
{Libraries}ToolLibs.o
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
LDFLAGS = -w -c 'MPS ' -t MPST \
|
|
|
|
-sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main
|
|
|
|
|
|
|
|
# MPW 3.5
|
|
|
|
|
|
|
|
# LIBS = \
|
2014-12-17 14:56:58 +00:00
|
|
|
# {CLibraries}StdCLib.o \
|
|
|
|
# {Libraries}Stubs.o \
|
|
|
|
# {Libraries}IntEnv.o \
|
|
|
|
# {Libraries}MacRuntime.o \
|
|
|
|
# {Libraries}Interface.o \
|
|
|
|
# {Libraries}ToolLibs.o
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
# LDFLAGS = -d -c 'MPS ' -t MPST
|
|
|
|
|
2015-01-21 18:29:02 +00:00
|
|
|
all: Help GetEnv Duplicate SetFile OverlayIIgs ListRez ListRezIIgs MakeEnums ReadGlobal
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.c.o
|
2014-12-17 13:16:15 +00:00
|
|
|
rm -f Help GetEnv Duplicate SetFile OverlayIIgs MakeEnums
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
GetEnv: GetEnv.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
Help: Help.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
Duplicate: Duplicate.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
SetFile: SetFile.c.o SetFile-flags.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
|
2013-07-29 06:02:50 +00:00
|
|
|
OverlayIIgs: OverlayIIgs.c.o OverlayIIgs-flags.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-29 06:02:50 +00:00
|
|
|
|
2013-08-05 01:52:44 +00:00
|
|
|
ListRez: ListRez.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-08-05 01:52:44 +00:00
|
|
|
|
2013-08-06 00:33:04 +00:00
|
|
|
ListRezIIgs: ListRezIIgs.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2013-07-29 06:02:50 +00:00
|
|
|
|
2014-12-17 13:16:15 +00:00
|
|
|
MakeEnums: MakeEnums.c.o
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
2014-12-17 13:16:15 +00:00
|
|
|
|
2015-01-21 18:29:02 +00:00
|
|
|
ReadGlobal: ReadGlobal.c.o
|
|
|
|
$(MPW) Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2013-07-14 22:15:56 +00:00
|
|
|
#SetFile.c : SetFile.rl
|
|
|
|
# ragel -G2 -p -m -o $@ $<
|
|
|
|
|
2015-01-21 18:29:02 +00:00
|
|
|
#ReadGlobal.c : ReadGlobal.rc
|
|
|
|
# re2c -o $@ $<
|
|
|
|
|
2013-07-14 22:15:56 +00:00
|
|
|
|
|
|
|
%.c.o : %.c
|
2015-01-20 17:19:42 +00:00
|
|
|
$(MPW) SC -p $< -o $@
|