diff options
Diffstat (limited to 'libc/regexp/Makefile')
-rw-r--r-- | libc/regexp/Makefile | 27 |
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 |