2013-07-03 00:04:12 +00:00
|
|
|
# makefile
|
|
|
|
|
|
|
|
Libraries=~/mpw/Libraries/Libraries
|
|
|
|
CLibraries=~/mpw/Libraries/CLibraries
|
|
|
|
|
2013-07-14 20:07:44 +00:00
|
|
|
# MPW 3.2
|
|
|
|
LIBS = \
|
|
|
|
$(Libraries)/Stubs.o \
|
2013-07-03 00:04:12 +00:00
|
|
|
$(CLibraries)/StdCLib.o \
|
|
|
|
$(Libraries)/Interface.o \
|
|
|
|
$(Libraries)/Runtime.o \
|
|
|
|
$(Libraries)/ToolLibs.o
|
|
|
|
|
|
|
|
LDFLAGS = -w -c 'MPS ' -t MPST \
|
|
|
|
-sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main
|
|
|
|
|
2013-07-14 20:07:44 +00:00
|
|
|
# MPW 3.5
|
|
|
|
|
|
|
|
# LIBS = \
|
|
|
|
# $(CLibraries)/StdCLib.o \
|
|
|
|
# $(Libraries)/Stubs.o \
|
|
|
|
# $(Libraries)/IntEnv.o \
|
|
|
|
# $(Libraries)/MacRuntime.o \
|
|
|
|
# $(Libraries)/Interface.o \
|
|
|
|
# $(Libraries)/ToolLibs.o
|
|
|
|
|
|
|
|
# LDFLAGS = -d -c 'MPS ' -t MPST
|
|
|
|
|
2013-07-11 00:54:03 +00:00
|
|
|
all: Help GetEnv Duplicate SetFile
|
2013-07-03 00:04:12 +00:00
|
|
|
|
2013-07-14 20:07:44 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.c.o
|
|
|
|
rm -f Help GetEnv Duplicate SetFile
|
|
|
|
|
2013-07-03 00:04:12 +00:00
|
|
|
GetEnv: GetEnv.c.o
|
|
|
|
mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
|
|
Help: Help.c.o
|
|
|
|
mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
|
|
|
2013-07-06 18:50:16 +00:00
|
|
|
Duplicate: Duplicate.c.o
|
|
|
|
mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2013-07-11 00:54:03 +00:00
|
|
|
|
|
|
|
SetFile: SetFile.c.o SetFile-flags.c.o
|
|
|
|
mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
#SetFile.c : SetFile.rl
|
|
|
|
# ragel -G2 -p -m -o $@ $<
|
|
|
|
|
|
|
|
|
2013-07-03 00:04:12 +00:00
|
|
|
%.c.o : %.c
|
|
|
|
mpw SC -p $< -o $@
|
|
|
|
|
|
|
|
# GetEnv.c.o : GetEnv.c
|
|
|
|
# mpw SC -p GetEnv.c -o $@
|
|
|
|
|
|
|
|
# Help.c.o : Help.c
|
|
|
|
# mpw SC -p Help.c -o $@
|