Changes to make gcc compile our libraries too (Joren)

This commit is contained in:
Ben Gras
2005-10-21 11:19:35 +00:00
parent fd63815169
commit 69a0586adf
29 changed files with 861 additions and 3082 deletions

View File

@@ -1,30 +1,13 @@
# Makefile for lib/regex.
CFLAGS = -O -D_MINIX -D_POSIX_SOURCE
CC1 = $(CC) $(CFLAGS) -c
LIBRARY = ../libc.a
LIBRARIES = libc
all: $(LIBRARY)
libc_OBJECTS = \
regcomp.o \
regerror.o \
regexec.o \
regfree.o \
OBJ = \
$(LIBRARY)(regcomp.o) \
$(LIBRARY)(regerror.o) \
$(LIBRARY)(regexec.o) \
$(LIBRARY)(regfree.o) \
$(LIBRARY): $(OBJ)
aal cr $@ *.o
rm *.o
$(LIBRARY)(regcomp.o): regcomp.c
$(CC1) regcomp.c
$(LIBRARY)(regerror.o): regerror.c
$(CC1) regerror.c
$(LIBRARY)(regexec.o): regexec.c
$(CC1) regexec.c
$(LIBRARY)(regfree.o): regfree.c
$(CC1) regfree.c
include ../Makefile.inc