summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Build all Flex files standaloneJohn Naylor2022-09-041-2/+9
| | | | | | | | | | | | | The proposed Meson build system will need a way to ignore certain generated files in order to coexist with the autoconf build system, and C files generated by Flex which are #include'd into .y files make this more difficult. In similar vein to 72b1e3a21, arrange for all Flex C files to compile to their own .o targets. Reviewed by Andres Freund Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de Discussion: https://www.postgresql.org/message-id/CAFBsxsF8Gc2StS3haXofshHCzqNMRXiSxvQEYGwnFsTmsdwNeg@mail.gmail.com
* Split all OBJS style lines in makefiles into one-line-per-entry style.Andres Freund2019-11-051-1/+3
| | | | | | | | | | | | | | | When maintaining or merging patches, one of the most common sources for conflicts are the list of objects in makefiles. Especially when the split across lines has been changed on both sides, which is somewhat common due to attempting to stay below 80 columns, those conflicts are unnecessarily laborious to resolve. By splitting, and alphabetically sorting, OBJS style lines into one object per line, conflicts should be less frequent, and easier to resolve when they still occur. Author: Andres Freund Discussion: https://postgr.es/m/20191029200901.vww4idgcxv74cwes@alap3.anarazel.de
* Refactor flex and bison make rulesPeter Eisentraut2012-10-111-16/+0
| | | | | | | | Numerous flex and bison make rules have appeared in the source tree over time, and they are all virtually identical, so we can replace them by pattern rules with some variables for customization. Users of pgxs will also be able to benefit from this.
* Remove useless whitespace at end of linesPeter Eisentraut2010-11-231-1/+1
|
* Remove cvs keywords from all files.Magnus Hagander2010-09-201-1/+1
|
* Fix a few places where we needed -I. in CPPFLAGS to work properly inTom Lane2010-01-051-2/+2
| | | | VPATH builds. We had this already in several places, but not all.
* Derived files that are shipped in the distribution used to be built in thePeter Eisentraut2009-08-281-4/+4
| | | | | | source directory even for out-of-tree builds. They are now alsl built in the build tree. This should be more convenient for certain developers' workflows, and shouldn't really break anything else.
* Remove all traces that suggest that a non-Bison yacc might be supported, andPeter Eisentraut2008-08-291-18/+6
| | | | | change build system to use only Bison. Simplify build rules, make file names uniform. Don't build the token table header file where it is not needed.
* Refactor backend makefiles to remove lots of duplicate codePeter Eisentraut2008-02-191-6/+2
|
* Remove remains of old depend target.Peter Eisentraut2007-01-201-11/+1
|
* Make all our flex and bison files use %option prefix or %name-prefixTom Lane2006-03-071-20/+14
| | | | | | (respectively) to rename yylex and related symbols. Some were doing it this way already, while others used not-too-reliable sed hacks in the Makefiles. It's all nice and consistent now.
* Remove QNX port.Bruce Momjian2006-01-051-9/+2
|
* $Header: -> $PostgreSQL Changes ...PostgreSQL Daemon2003-11-291-1/+1
|
* Arrange to compile flex output files as inclusions into other filesTom Lane2002-11-011-4/+6
| | | | | | | | (usually bison output files), not as standalone files. This hack works around flex's insistence on including <stdio.h> before we are able to include postgres.h; postgres.h will already be read before the compiler starts to read the flex output file. Needed for largefile support on some platforms.
* Fix include paths for case of VPATH build.Tom Lane2002-01-091-1/+3
|
* Make the yacc rules safe for parallel make. See discussion on pgsql-patchesPeter Eisentraut2001-11-161-3/+5
| | | | and comment in src/backend/parser/Makefile for the technical details.
* remove no longer needed -Wno-errorPeter Eisentraut2001-08-221-5/+1
|
* Only look for bison as YACC; other yaccs need to be selected explicitly.Peter Eisentraut2001-02-101-1/+5
| | | | | When no suitable YACC is configured, supply useful informational messages to users. (Same way flex has been handled for a while.)
* Add support for VPATH builds, that is, building somewhere else than in thePeter Eisentraut2000-10-201-2/+2
| | | | | | | | | source directory. This involves mostly makefiles using $(srcdir) when they might have used ".". (Regression tests don't work with this, yet.) Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword in most places, to preserve necessary flags even when the user overrode the flags.
* New configure test for flex, which recognizes only flex but does so in allPeter Eisentraut2000-08-281-3/+7
| | | | | | incarnations (I hope). When an acceptable flex version is not found, print instructive error messages from both configure and the makefiles, so that users can continue building anyway.
* Add distprep target to take some of the job of the release_prep script.Peter Eisentraut2000-07-191-36/+29
| | | | | | | | | | | | | The latter updated accordingly. Also add `dist' and `distcheck' targets to play with, but caveat packager. Updated backend/bootstrap and backend/parser makefile to make them marginally builddir aware and fix the usual set of things. Add rule to automatically remake config.h dependent on config.h.in and config.status. (Adopted from Autoconf manual and about every other package.) On a good day we should now have a complete and accurate set of dependencies throughout everything.
* Gen_fmgrtab.sh is strange: it is a platform dependent way (because it usesPeter Eisentraut2000-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | CPP) to create platform independent files. Unfortunately, that means that every config.status (or configure) run invariably causes a relink of the postmaster and also that we can't put these files in the distribution (usefully). So we make it a little smarter: when the output files already exist and it notices that it would recreate them in identical form, it doesn't touch them. In order to avoid re-running the make rule all the time we update a timestamp file instead. Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that is detected at configure time, not necessarily named `awk' and have it check for exit statuses a little better. In other news... Remove USE_LOCALE from the templates, it was set to `no' everywhere anyway. Also remove YACC and YFLAGS from the templates, configure is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules that need this flag should explicitly invoke it. YFLAGS should be a user variable. Update the makefiles to that effect.
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-291-14/+9
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* Removed MBFLAGS from makefiles since it's now done in include/config.h.Peter Eisentraut2000-01-191-4/+1
|
* Included all yacc and lex files into the distribution.Peter Eisentraut2000-01-161-2/+2
|
* Update for QNX.Bruce Momjian1999-12-161-5/+8
|
* I have done the QNX4 port with the current source tree. The number ofBruce Momjian1999-12-161-1/+6
| | | | | | | | backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
* New LDOUT makefile variable for QNX os.Bruce Momjian1999-12-131-2/+2
|
* Make LD -r as macros that can be changed for QNX.Bruce Momjian1999-12-091-2/+2
|
* From: t-ishii@sra.co.jpMarc G. Fournier1998-07-261-3/+3
| | | | | | | | | As Bruce mentioned, this is due to the conflict among changes we made. Included patches should fix the problem(I changed all MB to MULTIBYTE). Please let me know if you have further problem. P.S. I did not include pathces to configure and gram.c to save the file size(configure.in and gram.y modified).
* I really hope that I haven't missed anything in this one...Marc G. Fournier1998-07-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: t-ishii@sra.co.jp Attached are patches to enhance the multi-byte support. (patches are against 7/18 snapshot) * determine encoding at initdb/createdb rather than compile time Now initdb/createdb has an option to specify the encoding. Also, I modified the syntax of CREATE DATABASE to accept encoding option. See README.mb for more details. For this purpose I have added new column "encoding" to pg_database. Also pg_attribute and pg_class are changed to catch up the modification to pg_database. Actually I haved added pg_database_mb.h, pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is enabled. The reason having separate files is I couldn't find a way to use ifdef or whatever in those files. I have to admit it looks ugly. No way. * support for PGCLIENTENCODING when issuing COPY command commands/copy.c modified. * support for SQL92 syntax "SET NAMES" See gram.y. * support for LATIN2-5 * add UNICODE regression test case * new test suite for MB New directory test/mb added. * clean up source files Basic idea is to have MB's own subdirectory for easier maintenance. These are include/mb and backend/utils/mb.
* Hi,Bruce Momjian1998-04-061-6/+4
| | | | | | | | | | | | | | | | | | | | | | Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
* Major cleanout of PORTNAME variables from Makefiles...bound to screw upMarc G. Fournier1997-12-201-5/+1
| | | | some of the ports...
* First pass through, of many to come, towards making the whole sourceMarc G. Fournier1997-12-171-4/+6
| | | | | | tree "non-PORTNAME" dependent. Technically, anything that is PORTNAME dependent should be able to be derived at compile time, through configure or through gcc
* From: Robert Bruccoleri <bruc@bms.com>Marc G. Fournier1997-06-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Subject: [PORTS] Patches for Irix 6.4 I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits addressing, but allows access to all the instructions in the MIPS4 instruction set.) There were several problems: 1) The ld command is not referenced as a macro in all the Makefiles. On this platform, you have to include -n32 on all the ld commands. Makefiles were changed as needed. 3) Lots of warnings are generated from the compiler. Since the regression tests worked OK, I didn't attempt to fix them. If anyone wants the compilation log, please let me know, and I'll email it to you. The version of postgresql was 970602. Here is Makefile.custom: CUSTOM_COPT = -O2 -n32 MK_NO_LORDER = 1 LD = ld -n32 CC += -n32
* From: "Brian E. Gallew" <geek+@cmu.edu>Marc G. Fournier1997-06-111-5/+7
| | | | | | Subject: Re: [PORTS] Re: [PATCHES] DG/UX 5.4R11 patches Comments in boot.sed break DG/UX port
* Fix for -Wno-errorVadim B. Mikheev1997-04-181-2/+2
|
* Fix up the -Wno-error problem for non-gcc compilersMarc G. Fournier1997-04-151-2/+6
| | | | Pointed out by many many ppl
* This commit represents a clean compile with the new templates underMarc G. Fournier1997-04-041-2/+2
| | | | | | | | | FreeBSD The Makefile(s) have all been cleaned up such that there is a single LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE. The Makefile(s) should be alot more straightforward then they were before...and consistent
* From: Oleg Bartunov <oleg@sai.msu.su>Marc G. Fournier1997-04-021-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] locale patches ! Hi there, here are little patches to get Postgres 6.1 works with locale stuff. This is a patch against 970402.tar.gz, there are no problem to apply them by hand to 6.0 release. Collate stuff tested about 1-2 months in real working database but I'm sure there must be no problem. US hackers could vote against locale implementation ( locale for sure will affect to speed of postgres ), so I introduce variable USE_LOCALE which controls locale stuff. Non-US users now could use ~* operator for searching and <order by> for strings with nation alphabet. Please, don't forget, as I did first time, to set environment variable LC_CTYPE and LC_COLLATE because backend get locale information from them. I start postmaster from a little script, assuming that shell is Bash shell it looks like: #!/bin/sh export LC_CTYPE=koi8-r export LC_COLLATE=koi8-r postmaster -B 1024 -S -D/usr/local/pgsql/data/ -o '-Fe'
* Use -Wno-error option only if compiler is gcc.Bryan Henderson1996-11-141-8/+15
|
* Makefile cleanup after reorganizationBruce Momjian1996-11-091-2/+1
|
* Compile and warning cleanupBruce Momjian1996-11-081-2/+2
|
* Simplify make files, add full dependencies.Bryan Henderson1996-10-271-0/+71