1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- TOPDIR=../../
- include $(TOPDIR)Rules.mak
- CSRC= pwent.c getpwnam.c getpwuid.c putpwent.c getpw.c fgetpwent.c \
- __getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c \
- initgroups.c __getpwent_r.c
- COBJS=$(patsubst %.c,%.o, $(CSRC))
- OBJS=$(COBJS)
- all: $(OBJS) $(LIBC)
- $(LIBC): ar-target
- ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
- $(COBJS): %.o : %.c
- $(CC) $(CFLAGS) -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
- $(OBJ): Makefile
- __getgrent.c: config.h
- initgroups.c: config.h
- clean:
- rm -f *.[oa] *~ core
|