From a30d5a290f2a99cae4e38b4a23ef2ef8e204e956 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 24 Aug 1995 14:43:35 +0000 Subject: (all): New target. (symlink, magic, ifsock, fifo, null): Put all dependencies in these targets. (null-HURDLIBS, ifsock-HURDLIBS, fifo-HURDLIBS): Removed. Get rid of rules dealing with error.o --- trans/Makefile | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) (limited to 'trans/Makefile') diff --git a/trans/Makefile b/trans/Makefile index 9b4f4d81..a022fb46 100644 --- a/trans/Makefile +++ b/trans/Makefile @@ -18,31 +18,16 @@ dir := trans makemode := servers -SRCS = ifsock.c symlink.c magic.c null.c fifo.c -OBJS = $(subst .c,.o,$(SRCS)) fsysServer.o error.o targets = symlink ifsock magic null fifo +SRCS = ifsock.c symlink.c magic.c null.c fifo.c +OBJS = $(SRCS:.c=.o) fsysServer.o ifsockServer.o -CPPFLAGS += -I../lib -CPPFLAGS += $(CPPFLAGS-$(notdir $<)) -vpath %.c ../lib -null-HURDLIBS=libtrivfs libports libihash -ifsock-HURDLIBS=libtrivfs libports libihash -fifo-HURDLIBS=libpipe libtrivfs libports libihash libthreads - -include ../Makeconf - -symlink: symlink.o fsysServer.o - -magic: magic.o fsysServer.o error.o - -fifo: fifo.o error.o - -# The .a files have to be mentioned explicitly due to a make deficiency, -# even though they are already specified by null-HURDLIBS above. -null: null.o error.o ../libtrivfs/libtrivfs.a ../libports/libports.a \ - ../libihash/libihash.a +all: $(targets) -ifsock: ifsock.o error.o ../libtrivfs/libtrivfs.a ../libports/libports.a \ - ../libihash/libihash.a ifsockServer.o +symlink magic: fsysServer.o +ifsock: ifsockServer.o +fifo: ../libpipe/libpipe.a ../libthreads/libthreads.a +null ifsock fifo: ../libtrivfs/libtrivfs.a ../libports/libports.a ../libihash/libihash.a +$(targets): ../libshouldbeinlibc/libshouldbeinlibc.a -CPPFLAGS-error.c = -Dprogram_name=program_invocation_name -DHAVE_VPRINTF -DSTDC_HEADERS -DHAVE_STRERROR +include ../Makeconf -- cgit v1.2.3