1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-03 22:32:24 +00:00

Reduced verbosity.

This commit is contained in:
Oliver Schmidt 2013-05-05 22:34:04 +02:00
parent 1591871ba7
commit b6ebf71446

View File

@ -22,13 +22,17 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
LDLIBS += -lm
.SUFFIXES:
.PHONY: all $(PROGS) mostlyclean clean install uninstall
all: $(PROGS)
mostlyclean:
$(RM) -r ../wrk
clean: mostlyclean
$(RM) -r ../bin
clean:
$(RM) -r ../wrk ../bin
install: all
$(foreach prog,$(PROGS),$(INSTALL_recipe))
@ -36,10 +40,6 @@ install: all
uninstall:
$(foreach prog,$(PROGS),$(UNINSTALL_recipe))
.PHONY: all $(PROGS) mostlyclean clean install uninstall
.SUFFIXES:
##########
define INSTALL_recipe
@ -65,7 +65,7 @@ $1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
$$($1_OBJS): | ../wrk/$1
../wrk/$1:
mkdir -p $$@
@mkdir -p $$@
DEPS += $$($1_OBJS:.o=.d)
@ -87,11 +87,11 @@ endef
##########
../wrk/%.o: %.c
@echo $(CC) $<
@echo $<
@$(CC) -c $(CFLAGS) -o $@ $<
../bin:
mkdir $@
@mkdir $@
$(eval $(call OBJS_template,common))
../wrk/common/common.a: $(common_OBJS)