From: Andre Noll Date: Mon, 28 Feb 2011 23:44:05 +0000 (+0100) Subject: Use SSL_CPPFLAGS only for compiling crypt.c X-Git-Tag: v0.4.7~14^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=15ddd9078769b8c866061a8f715f5dbdcea66fd0 Use SSL_CPPFLAGS only for compiling crypt.c The previous cleanups moved everything which depends on openssl to crypt.c. This is now the only file which includes openssl headers, so there is no need to compile all objects with the ssl cpp flags. In fact this could break things for setups on which the include dir for openss contains other unwanted header files. --- diff --git a/Makefile.in b/Makefile.in index e6b6ecc2..8526716d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -54,7 +54,6 @@ CPPFLAGS += -Wunused-macros CPPFLAGS += -Wbad-function-cast CPPFLAGS += -fno-strict-aliasing CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) -CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@ CPPFLAGS += @arch_cppflags@ CPPFLAGS += -I/usr/local/include @@ -156,6 +155,9 @@ $(object_dir): $(man_dir): mkdir -p $@ +$(object_dir)/crypt.o: crypt.c | $(object_dir) + @[ -z "$(Q)" ] || echo 'CC $<' + $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @SSL_CPPFLAGS@ $< $(object_dir)/spx_common.o: spx_common.c | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ogg_cppflags@ $<