new -lutil, only openpty() for now

This commit is contained in:
Ben Gras
2005-07-19 16:01:37 +00:00
parent d740cce24d
commit 0f48b1885d
3 changed files with 111 additions and 0 deletions

19
lib/util/Makefile Normal file
View File

@@ -0,0 +1,19 @@
# Makefile for lib/util.
CFLAGS = -O -D_MINIX -D_POSIX_SOURCE
CC1 = $(CC) $(CFLAGS) -c
LIBUTIL = ../libutil.a
all: $(LIBUTIL)
OBJECTS = \
$(LIBUTIL)(openpty.o)
$(LIBUTIL): $(OBJECTS)
aal cr $@ *.o
rm *.o
$(LIBUTIL)(openpty.o): openpty.c
$(CC1) openpty.c