diff lib-src/Makefile.in.in @ 159:3bb7ccffb0c0 r20-3b6

Import from CVS: tag r20-3b6
author cvs
date Mon, 13 Aug 2007 09:41:43 +0200
parents 6b37e6ddd302
children 0132846995bd
line wrap: on
line diff
--- a/lib-src/Makefile.in.in	Mon Aug 13 09:40:48 2007 +0200
+++ b/lib-src/Makefile.in.in	Mon Aug 13 09:41:43 2007 +0200
@@ -415,19 +415,13 @@
 
 /* Why oh why does HP not include half of the standard X distribution? */
 
-#ifdef HAVE_XAUTH
-cflags_gnuserv = $(CFLAGS) $(lib_src_cppflags) $(c_switch_all)
-ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) $(ld_libs_all)
-#else
-cflags_gnuserv = ${cflags}
-ldflags_gnuserv = ${ldflags}
-#endif
+ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general)
 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
-	$(CC) -c ${cflags_gnuserv} ${srcdir}/gnuslib.c
+	$(CC) -c ${cflags} ${srcdir}/gnuslib.c
 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
-	$(CC) ${cflags_gnuserv} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(ldflags_gnuserv)
+	$(CC) ${cflags} -o $@ ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv}
 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
-	$(CC) ${cflags_gnuserv} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(ldflags_gnuserv)
+	$(CC) ${cflags} -o $@ ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv}
 
 /* mmencode binary is used by tm - but is really part of the metamail package */
 /* mmencode.c was merged copy of mmencode.c and codes.c of metamail */