diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-04-26 18:00:16 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-04-26 18:00:16 +0000 |
commit | 7f9b4267de9c5e27386fdc40aad2108298a50503 (patch) | |
tree | 4f47c5e07cd92636b3d7f82e5e880de61953a5fa | |
parent | 4056ae3b3ac284ba0e4ea28fcdd4435a23f206a6 (diff) |
Formerly Makefile.~4~
-rw-r--r-- | libthreads/Makefile | 71 |
1 files changed, 45 insertions, 26 deletions
diff --git a/libthreads/Makefile b/libthreads/Makefile index 744e5ea8..40b3ef4a 100644 --- a/libthreads/Makefile +++ b/libthreads/Makefile @@ -1,34 +1,53 @@ -CPPFLAGS = -nostdinc -I. -I/usr1/gnu/DIST/include -DCTHREAD_DATA -I/usr1/gnu/DIST/hurd/include -CFLAGS = -g -O -CPP = /usr1/gnu/DIST/lib/gcc-cpp -AS = as -AR = ar -RANLIB = ranlib -CC = gcc +# +# Copyright (C) 1994 Free Software Foundation +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +dir := libthreads + +include ../Makeconf + +SRCS = call.c cprocs.c cthread_data.c cthreads.c malloc.c mig_support.c \ + stack.c sync.c machine/csw.s machine/lock.s machine/thread.c +OBJS = call.o cprocs.o cthread_data.o cthreads.o malloc.o mig_support.o \ + stack.o sync.o csw.o lock.o thread.o + +DIST_FILES = $(SRCS) Makefile cthread_internal.h cthreads.h options.h \ + machine/asm.h machine/cthreads.h -VPATH=.:i386 +all: libthreads.a -OBJS = cprocs.o cthreads.o malloc.o \ - mig_support.o stack.o sync.o \ - thread.o lock.o csw.o +libthreads.a: $(OBJS) + rm -f libthreads.a + $(AR) r $@ $^ -all: libthreads.a +$(hurdinst)/lib/libthreads.a: libthreads.a + cp libthreads.a $@ + $(RANLIB) $@ -install: all - cp libthreads.a /usr1/gnu/DIST/lib/libthreads.a - ranlib /usr1/gnu/DIST/lib/libthreads.a +$(headers)/cthreads.h: cthreads.h + cp $< $@ -clean: - rm -f lib*.a Makedep* a.out core errs \ - *.d *.s *.S *.o *.BAK *.CKP */*.BAK */*.CKP +$(headers)/machine/cthreads.h: machine/cthreads.h + cp $< $@ -libthreads.a: $(OBJS) - rm -f $@ - $(AR) crv $@ $(OBJS) - $(RANLIB) $@ +install: $(hurdinst)/lib/libthreads.a \ + $(headers)/cthreads.h $(headers)/machine/cthreads.h -%.o: %.s - $(CPP) $(CPPFLAGS) $< > $*.as - $(AS) -o $@ $*.as - rm -f $*.as +$(OBJS): cthreads.h cthread_internal.h options.h \ + machine/asm.h machine/cthreads.h +clean: + rm -f libthreads.a *.o |