summaryrefslogtreecommitdiff
path: root/libc/grp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/grp/Makefile')
-rw-r--r--libc/grp/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/libc/grp/Makefile b/libc/grp/Makefile
new file mode 100644
index 0000000..e8cb13a
--- /dev/null
+++ b/libc/grp/Makefile
@@ -0,0 +1,41 @@
+# Copyright (C) 1996 Nat Friedman <ndf@aleph1.mit.edu>
+# This file is part of the Linux-8086 C library and is distributed
+# under the GNU Library General Public License.
+
+TOP=..
+include $(TOP)/Make.defs
+
+ifeq ($(PLATFORM),i386-Linux)
+CFLAGS+=$(WALL)
+else # ifeq ($(PLATFORM),i86-ELKS)
+CFLAGS=$(CCFLAGS) $(LIBDEFS) -ansi
+endif
+
+GSRC=__getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c initgroups.c \
+ config-grp.h
+GOBJ=__getgrent.o grent.o getgrnam.o getgrgid.o fgetgrent.o initgroups.o
+
+all: $(GOBJ)
+
+%.o: %.c config-grp.h
+ $(CC) $(CFLAGS) -o $@ $< -c
+
+libc.a: $(GOBJ)
+ ar r ../$(LIBC) $(GOBJ)
+ @touch libc.a
+
+test: test_grp.c libgrp.a
+ $(CC) $(CFLAGS) test_grp.c -o test_grp -L -lgrp # -static
+
+libgrp: libgrp.a
+
+libgrp.a: $(GOBJ)
+ ar r libgrp.a $(GOBJ)
+ ranlib libgrp.a
+
+clean:
+ rm -f *.o libc.a libgrp.a
+
+
+
+