ALLEXE =
ALLEXE += calc
-ALLEXE += ascii
-ALLEXE += skel
+#ALLEXE += skel
SHELL = bash
-MAKE = mingw32-make
+#MAKE = mingw32-make
MAKEFLAGS += -s
# Functions
all: depends
$(MAKE) $(ALLEXE:%=%.exe)
-alltests: all
- $(MAKE) $(addprefix test_,$(ALLEXE:%.exe=%))
-
depends: $(patsubst %.c, %.d, $(wildcard *.c)) $(patsubst %, %.ld, $(ALLEXE))
count:
rm -f purge $(ALLEXE) $(shell [ -f .targets ] && { cat .targets | sort | uniq; echo .targets; })
$(call PASS, SUCCESS)
+tests: all
+ $(MAKE) $(addprefix test_,$(ALLEXE:%.exe=%))
+
## Main rules
include $(wildcard *.d)
%.ld: %.c
$(call TITLE, "Building $@")
- echo ${<:.c=.exe}: $(shell ./getcomments.pl -p='linker:\s' -f='%' $< | awk '{for (i=1;i<=NF;i++) if ($$(i) ~ /.o$$/) printf " %s", $$(i)}') >> $@
+ echo ${<:.c=.exe}: $(shell ./getcomments.pl -p='linker:\s' -f='%' $< | awk '{for (i=1;i<=NF;i++) if ($$(i) ~ /.o$$/) printf " %s", $$(i)}') > $@
$(call PASS, SUCCESS)
%.o: %.c