2013-05-12 19:45:55 +00:00
|
|
|
define build-as-impl
|
|
|
|
$(call reset)
|
|
|
|
|
|
|
|
$(eval cflags += -Imach/$(ARCH)/as -I$(OBJDIR)/$D)
|
2013-05-13 21:12:46 +00:00
|
|
|
$(eval objdir := $(ARCH))
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
$(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)
|
|
|
|
|
2015-03-22 11:09:46 +00:00
|
|
|
$(call rawfile, $(LIBOBJECT))
|
2013-05-13 22:26:15 +00:00
|
|
|
$(call cprogram, $(BINDIR)/$(PLATFORM)/as)
|
|
|
|
$(call installto, $(PLATDEP)/$(PLATFORM)/as)
|
2013-06-21 22:20:50 +00:00
|
|
|
|
2016-03-14 19:58:19 +00:00
|
|
|
$(call reset)
|
|
|
|
$(eval cflags += -Imach/$(ARCH)/as -I$(OBJDIR)/$D)
|
|
|
|
$(eval objdir := $(ARCH))
|
|
|
|
$(call cppfile, mach/proto/as/comm2.y)
|
|
|
|
$(call installto, $(OBJDIR)/$D/preprocessed-comm2.y)
|
|
|
|
|
2013-06-21 22:20:50 +00:00
|
|
|
$(call reset)
|
2016-03-13 20:40:05 +00:00
|
|
|
$(call rawfile, man/$(ARCH)_as.6)
|
2013-06-21 22:20:50 +00:00
|
|
|
$(call installto, $(INSDIR)/share/man/man6/$(ARCH)_as.6)
|
2013-05-12 19:45:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
build-as = $(eval $(build-as-impl))
|
|
|
|
|