Don't use the ACK preprocessor on host files --- use the host preprocessor

instead.

--HG--
branch : default-branch
This commit is contained in:
David Given
2016-03-14 20:58:19 +01:00
parent e85991ec86
commit 88e13ecce3
2 changed files with 26 additions and 14 deletions

View File

@@ -24,24 +24,16 @@ define build-as-impl
$(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)
$(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)
$(call reset)
$(call rawfile, man/$(ARCH)_as.6)
$(call installto, $(INSDIR)/share/man/man6/$(ARCH)_as.6)