summaryrefslogtreecommitdiff
path: root/source4/main.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-13 15:19:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:12 -0500
commitd563c448f7971a8171c101f23e92c19aa2327a90 (patch)
treecdf4657c05953209e7bd51b11738c5935a19ec86 /source4/main.mk
parentd2d9c0f25be91ec6baa719217ca01904f8f381a6 (diff)
downloadsamba-d563c448f7971a8171c101f23e92c19aa2327a90.tar.gz
samba-d563c448f7971a8171c101f23e92c19aa2327a90.tar.bz2
samba-d563c448f7971a8171c101f23e92c19aa2327a90.zip
r14322: Remove the BROKEN_CC flag for now. None of the buildfarm hosts has
a C compiler that doesn't support -c and -o together and it makes the build system more complicated. This also means the current handling of broken C compilers is most likely broken as it isn't tested. This detection can be readded when we stumble upon a C compiler that supports both C99 (or at least the parts of it we need) and also has broken -c/-o handling, which I think is unlikely to happen. (This used to be commit 7fd74cfbb90063c79994fb6691dbe456d9ad9efa)
Diffstat (limited to 'source4/main.mk')
-rw-r--r--source4/main.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 5ffdc58e47..87537a5e5e 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -333,10 +333,24 @@ unused_macros:
# File types
###############################################################################
+.SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho
+
+.c.ho:
+ @echo Compiling $*.c with host compiler
+ @$(HOSTCC) `script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@
+
.c.d:
@echo "Generating dependencies for $<"
@$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $<
+.c.o:
+ @echo Compiling $<
+ @$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
+
+.h.h.gch:
+ @echo Precompiling $<
+ @$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
+
.y.c:
@echo "Building $< with $(YACC)"
@-$(srcdir)/script/yacc_compile.sh "$(YACC)" "$<" "$@"