clean up some makefile issues. (NicJA)
[AROS.git] / arch / ppc-chrp / boot / openfirmware / src / mmakefile.src
blobcfa95c92115a4b26fc95eeddec5e949747441738
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 TARGETDIR := $(GENDIR)/$(CURDIR)
6 FILES     := bootstrap elf menu of1275 support gpr
7 DEPS      := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)
8 OBJS      := $(foreach f, $(FILES), $(TARGETDIR)/$(f).o)
10 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR)/../include
11 USER_CPPFLAGS := -DVERSION=\"94\"
12 USER_CFLAGS += -ffreestanding -nostdlib -Wall
13 OPTIMIZATION_CFLAGS := -Os
15 #MM ub2lb-chrp-ppc-efika: linklibs
16 ub2lb-chrp-ppc-efika: $(AROSDIR)/os_image
18 #MM
19 ub2lb-chrp-ppc-efika-quick: $(AROSDIR)/os_image
21 $(AROSDIR)/os_image: $(OBJS) $(DEPS)
22         $(KERNEL_LD) -N --entry=bootstrap --script=$(SRCDIR)/$(CURDIR)/ldscript.lds $(OBJS) -o $@
24 $(TARGETDIR)/%.o : %.c
25         %compile_q opt="$(CFLAGS)"
27 $(TARGETDIR)/%.o : %.S
28         %compile_q opt="$(CFLAGS)"
30 $(TARGETDIR)/%.d : %.c
31         %mkdepend_q
33 $(TARGETDIR)/%.d : %.S
34         %mkdepend_q
36 -include $(DEPS)
38 %common