summaryrefslogtreecommitdiff
path: root/libc/regexp/Makefile
blob: 71c2b8138bbc7938710819d8cd674514d28532ef (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

TOP=..
include $(TOP)/Make.defs

OBJ=regexp.o regsub.o
LSRC=regexp.c regsub.c regerror.c

try:	try.o $(OBJ)
	$(CC) $(CFLAGS) try.o $(OBJ) -o try

# Regression test.
test:	try tests
	@echo 'No news is good news...'
	try <tests

libc.a: $(OBJ)
	ar r ../$(LIBC) $(OBJ)
	@touch libc.a

transfer:
	-@rm -f ../include/regexp.h ../include/regmagic.h
	cp -p regexp.h regmagic.h ../include/.

regexp.o:	regexp.c regexp.h regmagic.h
regsub.o:	regsub.c regexp.h regmagic.h

clean:
	rm -f libc.a *.o core mon.out timer.t.h dMakefile dtr try timer