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