summaryrefslogtreecommitdiff
path: root/libc/misc/regex
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/regex')
-rw-r--r--libc/misc/regex/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/libc/misc/regex/Makefile b/libc/misc/regex/Makefile
index db215edd8..2df62dd44 100644
--- a/libc/misc/regex/Makefile
+++ b/libc/misc/regex/Makefile
@@ -24,20 +24,19 @@
TOPDIR=../../../
include $(TOPDIR)Rules.mak
-CSRC=regex.c
-COBJS=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(COBJS)
+CSRC := regex.c
+OBJS := $(patsubst %.c,%.o, $(CSRC))
-OBJ_LIST=../../obj.misc.regex
+OBJ_LIST := ../../obj.misc.regex
all: $(OBJ_LIST)
$(OBJ_LIST): $(OBJS)
- echo $(patsubst %, misc/regex/%, $(OBJS)) > $(OBJ_LIST)
+ $(STRIPTOOL) -x -R .note -R .comment $^
+ echo $(patsubst %, misc/regex/%, $^) > $@
-$(COBJS): %.o : %.c
+$(OBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
- $(STRIPTOOL) -x -R .note -R .comment $*.o
clean:
- $(RM) *.[oa] *~ core
+ $(RM) *.o *~ core