elna/gcc/Make-lang.in

113 lines
2.8 KiB
Plaintext
Raw Permalink Normal View History

ELNA_INSTALL_NAME := $(shell echo gelna|sed '$(program_transform_name)')
ELNA_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gelna|sed '$(program_transform_name)')
2024-12-23 13:54:11 +01:00
elna: elna1$(exeext)
.PHONY: elna
# Driver
ELNA_OBJS = \
2024-12-23 13:54:11 +01:00
$(GCC_OBJS) \
elna/elna-spec.o \
$(END)
gelna$(exeext): $(ELNA_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS)
2024-12-23 13:54:11 +01:00
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
$(ELNA_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a \
2024-12-23 13:54:11 +01:00
$(EXTRA_GCC_LIBS) $(LIBS)
# The compiler proper
elna_OBJS = \
elna/elna1.o \
2024-12-27 23:38:25 +01:00
elna/elna-generic.o \
elna/elna-convert.o \
elna/elna-diagnostic.o \
2024-12-29 22:28:53 +01:00
elna/elna-tree.o \
2024-12-23 13:54:11 +01:00
elna/ast.o \
elna/driver.o \
elna/lexer.o \
elna/parser.o \
elna/result.o \
$(END)
elna1$(exeext): attribs.o $(elna_OBJS) $(BACKEND) $(LIBDEPS)
+$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
attribs.o $(elna_OBJS) $(BACKEND) $(LIBS) $(BACKENDLIBS)
elna.all.cross:
elna.start.encap: gelna$(exeext)
2024-12-23 13:54:11 +01:00
elna.rest.encap:
# No elna-specific selftests.
selftest-elna:
elna.install-common: installdirs
-rm -f $(DESTDIR)$(bindir)/$(ELNA_INSTALL_NAME)$(exeext)
$(INSTALL_PROGRAM) gelna$(exeext) $(DESTDIR)$(bindir)/$(ELNA_INSTALL_NAME)$(exeext)
rm -f $(DESTDIR)$(bindir)/$(ELNA_TARGET_INSTALL_NAME)$(exeext); \
2024-12-23 13:54:11 +01:00
( cd $(DESTDIR)$(bindir) && \
$(LN) $(ELNA_INSTALL_NAME)$(exeext) $(ELNA_TARGET_INSTALL_NAME)$(exeext) ); \
2024-12-23 13:54:11 +01:00
# Required goals, they still do nothing
elna.install-man:
elna.install-info:
elna.install-pdf:
elna.install-plugin:
elna.install-html:
elna.info:
elna.dvi:
elna.pdf:
elna.html:
elna.man:
elna.mostlyclean:
elna.clean:
elna.distclean:
elna.maintainer-clean:
# make uninstall
elna.uninstall:
-rm -f gelna$(exeext) elna1$(exeext)
2024-12-23 13:54:11 +01:00
-rm -f $(elna_OBJS)
# Used for handling bootstrap
elna.stage1: stage1-start
-mv elna/*$(objext) stage1/elna
elna.stage2: stage2-start
-mv elna/*$(objext) stage2/elna
elna.stage3: stage3-start
-mv elna/*$(objext) stage3/elna
elna.stage4: stage4-start
-mv elna/*$(objext) stage4/elna
elna.stageprofile: stageprofile-start
-mv elna/*$(objext) stageprofile/elna
elna.stagefeedback: stagefeedback-start
-mv elna/*$(objext) stagefeedback/elna
2024-12-30 23:12:47 +01:00
ELNA_INCLUDES = -I $(srcdir)/elna/include -I elna/generated
2024-12-23 13:54:11 +01:00
2024-12-30 23:12:47 +01:00
elna/%.o: elna/source/%.cc elna/generated/parser.hh elna/generated/location.hh
$(COMPILE) $(ELNA_INCLUDES) $<
$(POSTCOMPILE)
2024-12-23 13:54:11 +01:00
2024-12-30 23:12:47 +01:00
elna/%.o: elna/generated/%.cc elna/generated/parser.hh elna/generated/location.hh
2024-12-23 13:54:11 +01:00
$(COMPILE) $(ELNA_INCLUDES) $<
$(POSTCOMPILE)
2024-12-30 23:12:47 +01:00
elna/%.o: elna/gcc/%.cc elna/generated/parser.hh elna/generated/location.hh
2024-12-23 13:54:11 +01:00
$(COMPILE) $(ELNA_INCLUDES) $<
$(POSTCOMPILE)
2024-12-30 23:12:47 +01:00
elna/generated/parser.cc: elna/source/parser.yy
mkdir -p $(dir $@)
$(BISON) -d -o $@ $<
elna/generated/parser.hh elna/generated/location.hh: elna/generated/parser.cc
@touch $@
elna/generated/lexer.cc: elna/source/lexer.ll
mkdir -p $(dir $@)
$(FLEX) -o $@ $<