ff0c78cc78
--HG-- branch : dtrg-videocore-branch-branch
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
define build-as-impl
|
|
$(call reset)
|
|
|
|
$(eval cflags += -Imach/$(ARCH)/as -I$(OBJDIR)/$D)
|
|
$(eval objdir := $(ARCH))
|
|
|
|
$(call cfile, mach/proto/as/comm3.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call cfile, mach/proto/as/comm4.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call cfile, mach/proto/as/comm5.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call cfile, mach/proto/as/comm6.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call cfile, mach/proto/as/comm7.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call cfile, mach/proto/as/comm8.c)
|
|
$(call dependson, $(OBJDIR)/$D/y.tab.h)
|
|
|
|
$(call yacc, $(OBJDIR)/$D, $(OBJDIR)/$D/preprocessed-comm2.y)
|
|
|
|
$(eval CLEANABLES += $(OBJDIR)/$D/preprocessed-comm2.y)
|
|
$(OBJDIR)/$D/preprocessed-comm2.y: mach/proto/as/comm2.y $(CPPANSI) \
|
|
mach/$(ARCH)/as/mach1.c \
|
|
mach/$(ARCH)/as/mach2.c \
|
|
mach/$(ARCH)/as/mach3.c \
|
|
mach/$(ARCH)/as/mach4.c
|
|
@echo PREPROCESS $$@
|
|
@mkdir -p $$(dir $$@)
|
|
$(hide) $(CPPANSI) -P \
|
|
-Imach/$(ARCH)/as \
|
|
-Imach/proto/as \
|
|
-Ih \
|
|
mach/proto/as/comm2.y > $$@
|
|
|
|
$(call rawfile, $(LIBOBJECT))
|
|
$(call cprogram, $(BINDIR)/$(PLATFORM)/as)
|
|
$(call installto, $(PLATDEP)/$(PLATFORM)/as)
|
|
|
|
$(call reset)
|
|
$(call file, man/$(ARCH)_as.6)
|
|
$(call installto, $(INSDIR)/share/man/man6/$(ARCH)_as.6)
|
|
endef
|
|
|
|
build-as = $(eval $(build-as-impl))
|
|
|