ref: d89d90240080d1638ade3d650c3f83599a73613d
dir: /rules.mk/
include $(PROJECTDIR)/config.mk SCC_CFLAGS = $(MOREFLAGS) \ $(SYSCFLAGS) \ -g \ $(CFLAGS) SCC_LDFLAGS = -L$(LIBDIR) -g $(LDFLAGS) # helper macro to run over all the directories FORALL = +@set -e ;\ pwd=$$PWD; \ for i in $(DIRS); \ do \ cd $$i; \ $(MAKE) $@; \ cd $$pwd; \ done .s.o: $(AS) $< -o $@ .c.o: $(CC) $(SCC_CFLAGS) -o $@ -c $< .c: $(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $@ $<