mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
|
|
# ignore built-in rules, don't delete intermediate .o files.
|
|
|
|
MAKEFLAGS += --no-builtin-rules
|
|
.SUFFIXES:
|
|
.SECONDARY:
|
|
|
|
LIBS = \
|
|
{Libraries}Stubs.o \
|
|
{CLibraries}StdCLib.o \
|
|
{Libraries}Interface.o \
|
|
{Libraries}Runtime.o \
|
|
{Libraries}ToolLibs.o
|
|
|
|
PPC_LIBS = {SharedLibraries}InterfaceLib \
|
|
{SharedLibraries}StdCLib \
|
|
{PPCLibraries}StdCRuntime.o \
|
|
{PPCLibraries}PPCCRuntime.o
|
|
|
|
LDFLAGS = -w -c 'MPS ' -t MPST \
|
|
-sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main
|
|
|
|
SCFLAGS = -p
|
|
|
|
TARGETS = test_new_handle test_new_handle_2 test_new_pointer test_volumes test_createresfile
|
|
|
|
all : $(TARGETS)
|
|
|
|
clean :
|
|
rm -f $(TARGETS) o/*
|
|
|
|
# test_new_handle : o/test_new_handle.o
|
|
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
# test_new_handle_2 : o/test_new_handle_2.o
|
|
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
# test_new_pointer : o/test_new_pointer.o
|
|
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
# test_volumes : o/test_volumes.o
|
|
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
% : o/%.o
|
|
mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
o/%.o : %.c
|
|
mpw SC $(SCFLAGS) $< -o $@
|
|
|