diff options
Diffstat (limited to 'libc/misc/glob/Makefile')
-rw-r--r-- | libc/misc/glob/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libc/misc/glob/Makefile b/libc/misc/glob/Makefile index e753c936a..0933d0516 100644 --- a/libc/misc/glob/Makefile +++ b/libc/misc/glob/Makefile @@ -24,22 +24,21 @@ TOPDIR=../../../ include $(TOPDIR)Rules.mak -CSRC=glob.c glob64.c glob-hooks.c -COBJS=$(patsubst %.c,%.o, $(CSRC)) -OBJS=$(COBJS) +CSRC := glob.c glob64.c glob-hooks.c +OBJS := $(patsubst %.c,%.o, $(CSRC)) -OBJ_LIST=../../obj.misc.glob +OBJ_LIST := ../../obj.misc.glob all: $(OBJ_LIST) $(OBJ_LIST): $(OBJS) - echo $(patsubst %, misc/glob/%, $(OBJS)) > $(OBJ_LIST) + $(STRIPTOOL) -x -R .note -R .comment $^ + echo $(patsubst %, misc/glob/%, $^) > $@ -$(COBJS): %.o : %.c +$(OBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ - $(STRIPTOOL) -x -R .note -R .comment $*.o glob64.o: glob64.c glob.c clean: - $(RM) *.[oa] *~ core + $(RM) *.o *~ core |