commit b12d8447d70b3257efd59ef85e08bb2f3f078314
parent 83490e2c3f845a7e47125550c052362748ee8d0c
Author: finwo <finwo@pm.me>
Date: Wed, 15 Nov 2017 00:12:16 +0100
Added cdeps/cc-simple
Diffstat:
5 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/cdeps/cc-simple/00-Makefile b/cdeps/cc-simple/00-Makefile
@@ -0,0 +1,4 @@
+CC ?= $(shell which cc)
+SRC :=
+SRC += $(wildcard src/*.c)
+CFLAGS :=
diff --git a/cdeps/cc-simple/30-Makefile b/cdeps/cc-simple/30-Makefile
@@ -0,0 +1 @@
+OBJS := $(SRC:.c=.o)
diff --git a/cdeps/cc-simple/60-Makefile b/cdeps/cc-simple/60-Makefile
@@ -0,0 +1,8 @@
+%.o: %.c
+ $(CC) -c $(CFLAGS) $*.c -o $*.o
+ $(CC) -MM $(CFLAGS) $*.c > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
+ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \
+ sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
diff --git a/cdeps/cc-simple/90-Makefile b/cdeps/cc-simple/90-Makefile
@@ -0,0 +1,4 @@
+.PHONY: clean
+clean:
+ rm -f $(OBJS)
+ rm -f $(SRC:.c=.d)
diff --git a/cdeps/cc-simple/config b/cdeps/cc-simple/config
@@ -0,0 +1,2 @@
+tarball=https://github.com/cdeps/cc-simple/archive/master.tar.gz
+sha256=08b3a55ba9bf2bb162f9acbeb2b65be3bce947db7cbe9d99c77e0556cc3d8370