diff options
Diffstat (limited to 'libc/misc/syslog/Makefile')
-rw-r--r-- | libc/misc/syslog/Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libc/misc/syslog/Makefile b/libc/misc/syslog/Makefile index 26239ab7b..525cc683d 100644 --- a/libc/misc/syslog/Makefile +++ b/libc/misc/syslog/Makefile @@ -24,24 +24,23 @@ TOPDIR=../../../ include $(TOPDIR)Rules.mak -CSRC=syslog.c -COBJS=$(patsubst %.c,%.o, $(CSRC)) -OBJS=$(COBJS) - ifeq ($(UCLIBC_HAS_THREADS),y) CFLAGS += $(PTINC) endif -OBJ_LIST=../../obj.misc.syslog +CSRC := syslog.c +OBJS := $(patsubst %.c,%.o, $(CSRC)) + +OBJ_LIST := ../../obj.misc.syslog all: $(OBJ_LIST) $(OBJ_LIST): $(OBJS) - echo $(patsubst %, misc/syslog/%, $(OBJS)) > $(OBJ_LIST) + $(STRIPTOOL) -x -R .note -R .comment $^ + echo $(patsubst %, misc/syslog/%, $^) > $@ -$(COBJS): %.o : %.c +$(OBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ - $(STRIPTOOL) -x -R .note -R .comment $*.o clean: - $(RM) *.[oa] *~ core + $(RM) *.o *~ core |