Apply build system fixes for OpenBSD contributed by George Koehler.

This commit is contained in:
David Given 2013-05-18 12:15:53 +01:00
parent 9a513e8ef3
commit c18a82ec40
5 changed files with 12 additions and 6 deletions

8
README
View file

@ -45,6 +45,10 @@ Requirements:
- an ANSI C compiler. This defaults to gcc. You can change this by setting - an ANSI C compiler. This defaults to gcc. You can change this by setting
the CC make variable. the CC make variable.
- flex and yacc.
- GNU make.
- about 40MB free in /tmp (or some other temporary directory). - about 40MB free in /tmp (or some other temporary directory).
- about 6MB in the target directory. - about 6MB in the target directory.
@ -57,14 +61,14 @@ Instructions:
- Run: - Run:
make make # or gmake
...from the command line. This will do the build. ...from the command line. This will do the build.
The make system is fully parallelisable. If you have a multicore system, The make system is fully parallelisable. If you have a multicore system,
you probably want to do: you probably want to do:
make -j8 make -j8 # or gmake -j8
...instead (substituting the right number of cores, of course). You can ...instead (substituting the right number of cores, of course). You can
also shave a few seconds of the build time by using the -r flag. also shave a few seconds of the build time by using the -r flag.

View file

@ -6,6 +6,7 @@
/* PARSER ERROR ADMINISTRATION */ /* PARSER ERROR ADMINISTRATION */
#include <alloc.h> #include <alloc.h>
#include "idf.h"
#include "arith.h" #include "arith.h"
#include "LLlex.h" #include "LLlex.h"
#include "Lpars.h" #include "Lpars.h"

View file

@ -11,6 +11,7 @@
#include <alloc.h> #include <alloc.h>
#include "class.h" #include "class.h"
#include "macro.h" #include "macro.h"
#include "idf.h"
#include "arith.h" #include "arith.h"
#include "sizes.h" #include "sizes.h"
#include "align.h" #include "align.h"

View file

@ -45,9 +45,9 @@ $(eval CLEANABLES += $o $1/Lpars.h)
$o: $1/Lpars.h $o: $1/Lpars.h
$1/Lpars.h: $2 $(LLGEN) $1/Lpars.h: $2 $(LLGEN)
@echo LLGEN $1/Lpars.c @echo LLGEN $1/Lpars.c
@mkdir -p $(dir $o) @mkdir -p $1
$(hide) $(RM) $o $1/Lpars.h $(hide) $(RM) $o $1/Lpars.h
$(hide) cd $(dir $o) && $(LLGEN) $(abspath $2) $(hide) cd $1 && $(LLGEN) $(abspath $2)
$(foreach f,$o,$(call cfile,$f)) $(foreach f,$o,$(call cfile,$f))

View file

@ -5,8 +5,8 @@ $(eval g := $(OBJDIR)/$D/dmach.c $(OBJDIR)/$D/intable.c)
$(wordlist 2, $(words $g), $g): $(firstword $g) $(wordlist 2, $(words $g), $g): $(firstword $g)
$(firstword $g): $(util-ack-mktables) $(firstword $g): $(util-ack-mktables)
@echo MKTABLES @echo MKTABLES
@mkdir -p $(dir $g) @mkdir -p $(OBJDIR)/$D
$(hide) cd $(dir $g) && $(util-ack-mktables) $(INSDIR)/share $(hide) cd $(OBJDIR)/$D && $(util-ack-mktables) $(INSDIR)/share
$(eval CLEANABLES += $g) $(eval CLEANABLES += $g)
endef endef