summaryrefslogtreecommitdiff
path: root/libc/regexp
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-02-25 20:42:19 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:38:07 +0200
commit4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch)
treea5d9c84ba2661029ddb2223dacd50529a361c3d5 /libc/regexp
parentf8de35da65c5d93bb733073cf40da154bc1c0748 (diff)
parent9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff)
downloaddev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'libc/regexp')
-rw-r--r--libc/regexp/Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/libc/regexp/Makefile b/libc/regexp/Makefile
index 71c2b81..0276aba 100644
--- a/libc/regexp/Makefile
+++ b/libc/regexp/Makefile
@@ -1,28 +1,27 @@
-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
+CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
-# Regression test.
-test: try tests
- @echo 'No news is good news...'
- try <tests
+all: $(LIBC)
+ @:
-libc.a: $(OBJ)
- ar r ../$(LIBC) $(OBJ)
- @touch libc.a
+$(LIBC): $(LIBC)($(OBJ))
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
+$(LIBC)(regexp.o): regexp.c regexp.h regmagic.h
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+ $(RM) $*.o
+
+$(LIBC)(regsub.o): regsub.c regexp.h regmagic.h
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+ $(RM) $*.o
clean:
rm -f libc.a *.o core mon.out timer.t.h dMakefile dtr try timer