mpw/test/makefile

61 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2015-01-15 21:39:10 +00:00
# ignore built-in rules, don't delete intermediate .o files.
MAKEFLAGS += --no-builtin-rules
.SUFFIXES:
.SECONDARY:
MPWFLAGS = -DMPWVersion=3.2
MPW ?= mpw
2015-01-20 18:58:24 +00:00
2015-01-13 21:59:43 +00:00
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
2015-01-23 15:26:40 +00:00
TARGETS = test_new_handle test_new_handle_2 test_new_pointer test_volumes \
test_createresfile test_hwpriv test_sane
2015-01-13 21:59:43 +00:00
all : $(TARGETS)
clean :
rm -f $(TARGETS) o/*
2015-01-15 21:39:10 +00:00
# test_new_handle : o/test_new_handle.o
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
2015-01-13 21:59:43 +00:00
2015-01-15 21:39:10 +00:00
# test_new_handle_2 : o/test_new_handle_2.o
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
2015-01-13 21:59:43 +00:00
2015-01-15 21:39:10 +00:00
# test_new_pointer : o/test_new_pointer.o
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
2015-01-13 21:59:43 +00:00
2015-01-15 21:39:10 +00:00
# test_volumes : o/test_volumes.o
2015-01-13 21:59:43 +00:00
# mpw Link $(LDFLAGS) -o $@ $^ $(LIBS)
test_sane: o/nan.o o/test_sane.o
2022-10-11 01:06:44 +00:00
$(MPW) $(MPWFLAGS) Link $(LDFLAGS) -o $@ $^ $(LIBS) {CLibraries}CSANELib.o
2015-01-15 21:39:10 +00:00
% : o/%.o
$(MPW) $(MPWFLAGS) Link $(LDFLAGS) -o $@ $^ $(LIBS)
2015-01-15 21:39:10 +00:00
2015-01-13 21:59:43 +00:00
o/%.o : %.c
$(MPW) $(MPWFLAGS) SC $(SCFLAGS) $< -o $@
o/%.o : %.asm
$(MPW) $(MPWFLAGS) Asm $(ASMFLAGS) $< -o $@
2015-01-13 21:59:43 +00:00