diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-26 14:48:11 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-26 14:48:11 +0100 |
commit | 0493c5a5004096ab5118920dec16d6be4cf0fdc9 (patch) | |
tree | 4f46eee986dccef63dcf8dc1ef529f0f94ebf601 /source4 | |
parent | a999a1fc996234555bd2d8a4a873b39d111c347e (diff) | |
download | samba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.tar.gz samba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.tar.bz2 samba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.zip |
Move common rules code to separate directory.
(This used to be commit 803ebd6479ae388ae65de8de7fb88600452d47df)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/Makefile | 12 | ||||
-rwxr-xr-x | source4/build/make/lex_compile.sh (renamed from source4/script/lex_compile.sh) | 0 | ||||
-rw-r--r-- | source4/build/make/rules.mk (renamed from source4/rules.mk) | 21 | ||||
-rwxr-xr-x | source4/build/make/yacc_compile.sh (renamed from source4/script/yacc_compile.sh) | 0 |
4 files changed, 20 insertions, 13 deletions
diff --git a/source4/Makefile b/source4/Makefile index 4bd5042f3c..3a303ae39f 100644 --- a/source4/Makefile +++ b/source4/Makefile @@ -19,6 +19,18 @@ BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS) HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS) HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS) +$(srcdir)/version.h: $(srcdir)/VERSION + @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/ + +regen_version:: + @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/ + +clean_pch:: + @echo "Removing precompiled headers" + @-rm -f include/includes.h.gch + +pch:: clean_pch include/includes.h.gch + .DEFAULT_GOAL := all ifneq ($(automatic_deps),yes) diff --git a/source4/script/lex_compile.sh b/source4/build/make/lex_compile.sh index 9bba7257b1..9bba7257b1 100755 --- a/source4/script/lex_compile.sh +++ b/source4/build/make/lex_compile.sh diff --git a/source4/rules.mk b/source4/build/make/rules.mk index 0d529b7314..bd72946593 100644 --- a/source4/rules.mk +++ b/source4/build/make/rules.mk @@ -1,3 +1,6 @@ +# Rules file for Samba 4 +# This relies on GNU make. +# # Dependencies command DEPENDS = $(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ \ $(CFLAGS) $(CPPFLAGS) $< -o $@ @@ -26,22 +29,14 @@ PCHCOMPILE = @$(CC) -Ilib/replace \ # Partial linking PARTLINK = @$(PROG_LD) -r +make_utility_dir = $(srcdir)/build/make/ + include/config.h: @echo "include/config.h not present" @echo "You need to rerun ./autogen.sh and ./configure" @/bin/false -$(srcdir)/version.h: $(srcdir)/VERSION - @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/ - -regen_version:: - @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/ - -clean_pch:: - @echo "Removing precompiled headers" - @-rm -f include/includes.h.gch - -pch:: clean_pch include/includes.h.gch +pch:: clean:: clean_pch @echo Removing objects @@ -169,11 +164,11 @@ include/includes.d: include/includes.h .y.c: @echo "Building $< with $(YACC)" - @-$(srcdir)/script/yacc_compile.sh "$(YACC)" "$<" "$@" + @-$(make_utility_dir)/yacc_compile.sh "$(YACC)" "$<" "$@" .l.c: @echo "Building $< with $(LEX)" - @-$(srcdir)/script/lex_compile.sh "$(LEX)" "$<" "$@" + @-$(make_utility_dir)/script/lex_compile.sh "$(LEX)" "$<" "$@" %.a: @echo Linking $@ diff --git a/source4/script/yacc_compile.sh b/source4/build/make/yacc_compile.sh index a56a51da0a..a56a51da0a 100755 --- a/source4/script/yacc_compile.sh +++ b/source4/build/make/yacc_compile.sh |