part revert commit 56211
[AROS.git] / arch / m68k-amiga / c / mmakefile.src
blob6c79b500a3acdf45c5dfedde92f85403b078a6dc
1 # Copyright © 2003-2019, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(SRCDIR)/config/aros.cfg
6 USER_CPPFLAGS := -DADATE="\"$(shell date "+%d.%m.%Y")\""
7 USER_INCLUDES := -I$(GENINCDIR) -I$(SRCDIR)
8 USER_CFLAGS := -fno-delete-null-pointer-checks
9 USER_AFLAGS := -Os
10 TARGET_ISA_AFLAGS:=$(ISA_MC68060_FLAGS)
12 #MM- workbench-c-m68k : includes \
13 #MM                     kernel-kernel-includes \
14 #MM                     linklibs \
15 #MM                     workbench-c-m68k-gdbstub \
16 #MM                     workbench-c-m68k-misc \
17 #MM                     workbench-c-m68k-setpatcharos \
18 #MM                     workbench-c-m68k-arosbootstrap \
19 #MM                     workbench-c-m68k-mmudump \
20 #MM                     workbench-c-m68k-setpatch
22 #MM- workbench-c-m68k-quick: workbench-c-m68k-gdbstub-quick \
23 #MM                          workbench-c-m68k-misc-quick \
24 #MM                          workbench-c-m68k-setpatcharos-quick \
25 #MM                          workbench-c-m68k-arosbootstrap-quick \
26 #MM                          workbench-c-m68k-mmudump-quick \
27 #MM                          workbench-c-m68k-setpatch-quick
29 #MM workbench-c-m68k-gdbstub : linklibs-romhack
31 #MM workbench-c-m68k-arosbootstrap : linklibs-loadseg
33 #MM workbench-c-m68k-setpatcharos : linklibs-loadseg
34 #MM workbench-c-m68k-setpatch : kernel-setpatch-includes kernel-setpatch-linklib
36 USER_LDFLAGS := -static
38 FILES := gdbstub
40 %build_progs mmake=workbench-c-m68k-gdbstub \
41     files=$(FILES) targetdir=$(AROS_C) \
42     detach=yes uselibs=romhack coverageinstr=no
44 FILES := gdbstop
46 %build_progs mmake=workbench-c-m68k-misc \
47     files=$(FILES) targetdir=$(AROS_C) \
48     usestartup=no
50 CFILES := SetPatchAROS
51 AFILES := newstackswap
52 USER_INCLUDES += -isystem $(SRCDIR)/rom/dos/include
53 USER_LDFLAGS  := -L$(GENDIR)/lib -static
55 %build_prog mmake=workbench-c-m68k-setpatcharos progname=SetPatchAROS \
56     files=$(CFILES) asmfiles=$(AFILES) targetdir=$(AROSARCHDIR) \
57     uselibs="loadseg" coverageinstr=no
59 CFILES        := AROSBootstrap
61 %build_prog mmake=workbench-c-m68k-arosbootstrap progname=AROSBootstrap \
62     files=$(CFILES) targetdir=$(AROSARCHDIR) \
63     usestartup=no uselibs="loadseg z.static" lto=no
65 CFILES        := mmudump
67 %build_prog mmake=workbench-c-m68k-mmudump progname=MMUDump \
68     files=$(CFILES) targetdir=$(AROS_C) \
69     usestartup=no
71 CFILES          := SetPatch
72 #USER_INCLUDES := -isystem
74 %build_prog mmake=workbench-c-m68k-setpatch progname=SetPatch \
75     files=$(CFILES) targetdir=$(AROS_C) \
76     uselibs=setpatch usestartup=no
78 # Some Tests to check SetPatch functionality ..
80 CFILES        := test-cas
81 TARGET_ISA_CFLAGS := $(ISA_MC68020_FLAGS)
82 USER_LDFLAGS  := 
84 %build_prog mmake=workbench-c-m68k-setpatch-testcas progname=test-CAS \
85     files=$(CFILES) targetdir=$(AROS_TESTS)/m68k
87 #MM- workbench-c-m68k-setpatch-tests : workbench-c-m68k-setpatch-testcas
88 #MM- workbench-c-m68k-setpatch-tests-quick : workbench-c-m68k-setpatch-testcas-quick
90 %common