summaryrefslogtreecommitdiff
path: root/libthreads/GNUmakefile.old
blob: cc0f6de800f27109e0a171be9526c955891d9a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CPPFLAGS = -nostdinc -I. -I/home/gd3/hurdinst/include
CFLAGS = -g -O
CPP=/usr1/gnu/DIST/lib/gcc-lib/i386-compaq-mach/2.4.5/cpp
AS = as
AR = ar
RANLIB = ranlib
CC = gcc

VPATH=.:i386

OBJS = cprocs.o cthreads.o malloc.o \
	mig_support.o stack.o sync.o \
	thread.o lock.o csw.o cthread_data.o

all: libthreads.a

install: all
	cp libthreads.a /home/gd3/hurdinst/lib/libthreads.a
	ranlib /home/gd3/hurdinst/lib/libthreads.a
	cp cthreads.h /home/gd3/hurdinst/include/cthreads.h
	cp i386/cthreads.h /home/gd3/hurdinst/include/i386/cthreads.h

clean:
	rm -f lib*.a Makedep* a.out core errs \
	 *.d *.s *.S *.o *.BAK *.CKP */*.BAK */*.CKP

libthreads.a: $(OBJS)
	rm -f $@
	$(AR) crv $@ $(OBJS)
	$(RANLIB) $@

%.o: %.s
	$(CPP) $(CPPFLAGS) $< > $*.as
	$(AS) -o $@ $*.as
	rm -f $*.as

TAGS: *.c *.h
	etags *.c *.h