Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- makefile -*-
- # GOAS makefile fragement
- # Copyright (C) 2010
- # Free Software Foundation, Inc.
- #
- # This file is part of GCC.
- #
- # GCC is free software; you can redistribute it and/or modify it under
- # the terms of the GNU General Public License as published by the Free
- # Software Foundation; either version 3, or (at your option) any later
- # version.
- #
- # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- # for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with GCC; see the file COPYING3. If not see
- # <http://www.gnu.org/licenses/>.
- OAS_OBJS = \
- oas/oas1.o \
- oas/oas_scanner.o \
- oas/oas_parser.o \
- oas/oas_lang.o
- GOAS_EXECS = goas
- .phony: oas
- oas: goas$(exeext) oas1$(exeext)
- oas/oas_scanner.c oas/oas_scanner.h: oas/oas_scanner.l
- $(FLEX) --header-file=oas/oas_scanner.h -P oas_ -o oas/oas_scanner.c $<
- oas/oas_parser.c oas/oas_parser.h: oas/oas_parser.y
- $(BISON) -p oas_ -d -o oas/oas_parser.c $<
- oas/oas_scanner.o: oas/oas_scanner.c oas/oas_parser.h
- oas/oas_parser.o: oas/oas_parser.c oas/oas_scanner.h oas/oas_parser.h
- oas/oas_lang.o: oas/oas_lang.c
- oas/oas1.o: $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
- $(FLAGS_H) $(GGC_H) $(DIAGNOSTIC_H) toplev.h coretypes.h \
- input.h options.h opts.h \
- oas/oas1.c oas/oas1.h gtype-oas.h
- oas1$(exeext): $(OAS_OBJS) $(BACKEND) $(LIBSDEPS) attribs.o
- $(CC) $(OAS_OBJS) $(ALL_CFLAGS) $(LDFLAGS) $(BACKEND) $(LIBS) $(GMPLIBS) \
- $(BACKENDLIBS) attribs.o -o $@
- oas/oasspec.o: oas/oasspec.o $(CONFIG_H) $(SYSTEM_H) \
- coretypes.h $(DIAGNOSTIC_H) $(TREE_H) $(FLAGS_H) toplev.h langhooks.h $(TM_H)
- $(CC) $(GPY_CFLAGS) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
- $(INCLUDES) $(LDFLAGS) -c -o $@ $(srcdir)/oas/oasspec.c
- goas$(exeext): $(GCC_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS) oas/oasspec.o
- $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
- $(GCC_OBJS) oas/oasspec.o $(EXTRA_GCC_OBJS) $(LIBS) libcommon-target.a \
- $(EXTRA_GCC_LIBS) $(LIBS)
- oas.srcextra:
- oas.all.cross:
- oas.start.encap:
- oas.rest.encap:
- oas.man:
- oas.srcman:
- oas.info:
- oas.srcinfo:
- oas.dvi:
- oas.pdf:
- oas.html:
- oas.tags: force
- cd $(srcdir)/oas; etags -o TAGS.sub *.y *.l *.c *.h; \
- etags --include TAGS.sub --include ../TAGS.sub
- oas.install oas.install.common oas.install-common: oas.install.common.done
- oas.install.common.done: installdirs
- for name in $(GOAS_EXECS); \
- do \
- if [ -f $$name ] ; then \
- name2="`echo \`basename $$name\` | sed -e '$(program_transform_name)' `"; \
- rm -f $(DESTDIR)$(bindir)/$$name2$(exeext); \
- $(INSTALL_PROGRAM) $$name$(exeext) $(DESTDIR)$(bindir)/$$name2$(exeext); \
- chmod a+x $(DESTDIR)$(bindir)/$$name2$(exeext); \
- fi ; \
- done
- oas.install-info:
- oas.install-pdf:
- oas.install-man:
- oas.clean: mostlyclean
- oas.mostlyclean:
- cd oas; rm -f oas_scanner.c oas_parser.c oas_parser.h *o
- oas.install-plugin:
- oas.stage1: stage1-start
- -mv oas/*$(objext) stage1/oas
- oas.stage2: stage2-start
- -mv oas/*$(objext) stage2/oas
- oas.stage3: stage3-start
- -mv oas/*$(objext) stage3/oas
- oas.stage4: stage4-start
- -mv oas/*$(objext) stage4/oas
- oas.stageprofile: stageprofile-start
- -mv oas/*$(objext) stageprofile/oas
- oas.stagefeedback: stagefeedback-start
- -mv oas/*$(objext) stagefeedback/oas
- config.status: oas/config-lang.in
Advertisement
Add Comment
Please, Sign In to add comment