summaryrefslogtreecommitdiff
path: root/libc/pwd_grp
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
commit3a7ac9c7a7b4d6181d3cd70a9cb85d93a1938238 (patch)
treef87aedb508cd30ff8d50b75dbe832d34ac5dad85 /libc/pwd_grp
parentb0c8130cec05f40ce926058d18fbc520b1a0e856 (diff)
Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r--libc/pwd_grp/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/libc/pwd_grp/Makefile b/libc/pwd_grp/Makefile
index 3b37e0052..226eb2654 100644
--- a/libc/pwd_grp/Makefile
+++ b/libc/pwd_grp/Makefile
@@ -24,8 +24,8 @@
TOPDIR=../../
include $(TOPDIR)Rules.mak
-MSRC=pwd_grp.c
-MOBJ= fgetpwent_r.o fgetgrent_r.o fgetpwent.o fgetgrent.o \
+MSRC := pwd_grp.c
+MOBJ = fgetpwent_r.o fgetgrent_r.o fgetpwent.o fgetgrent.o \
getpwnam_r.o getgrnam_r.o getpwuid_r.o getgrgid_r.o \
getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \
getpwent_r.o getgrent_r.o getpwent.o getgrent.o \
@@ -33,35 +33,32 @@ MOBJ= fgetpwent_r.o fgetgrent_r.o fgetpwent.o fgetgrent.o \
__parsepwent.o __parsegrent.o __pgsreader.o
ifeq ($(HAS_SHADOW),y)
-MOBJ+= fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \
+MOBJ += fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \
getspnam.o getspent_r.o getspent.o sgetspent.o \
putspent.o __parsespent.o # getspuid_r.o getspuid.o
endif
-CSRC=
+CSRC =
ifeq ($(HAS_SHADOW),y)
-CSRC+= lckpwdf.c
+CSRC += lckpwdf.c
endif
-COBJ=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(MOBJ) $(COBJ)
+COBJ := $(patsubst %.c,%.o, $(CSRC))
+OBJS := $(MOBJ) $(COBJ)
-OBJ_LIST=../obj.pwd_grp
+OBJ_LIST := ../obj.pwd_grp
all: $(OBJ_LIST)
$(OBJ_LIST): $(OBJS)
- echo $(patsubst %, pwd_grp/%, $(OBJS)) > $(OBJ_LIST)
+ $(STRIPTOOL) -x -R .note -R .comment $^
+ echo $(patsubst %, pwd_grp/%, $^) > $@
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
- $(STRIPTOOL) -x -R .note -R .comment $*.o
$(COBJ): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
-
-$(OBJ): Makefile
clean:
- $(RM) *.[oa] *~ core
+ $(RM) *.o *~ core