mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 17:33:00 +00:00
Reduced verbosity.
This commit is contained in:
parent
1591871ba7
commit
b6ebf71446
18
src/Makefile
18
src/Makefile
@ -22,13 +22,17 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
|
|||||||
|
|
||||||
LDLIBS += -lm
|
LDLIBS += -lm
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
.PHONY: all $(PROGS) mostlyclean clean install uninstall
|
||||||
|
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
$(RM) -r ../wrk
|
$(RM) -r ../wrk
|
||||||
|
|
||||||
clean: mostlyclean
|
clean:
|
||||||
$(RM) -r ../bin
|
$(RM) -r ../wrk ../bin
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
$(foreach prog,$(PROGS),$(INSTALL_recipe))
|
$(foreach prog,$(PROGS),$(INSTALL_recipe))
|
||||||
@ -36,10 +40,6 @@ install: all
|
|||||||
uninstall:
|
uninstall:
|
||||||
$(foreach prog,$(PROGS),$(UNINSTALL_recipe))
|
$(foreach prog,$(PROGS),$(UNINSTALL_recipe))
|
||||||
|
|
||||||
.PHONY: all $(PROGS) mostlyclean clean install uninstall
|
|
||||||
|
|
||||||
.SUFFIXES:
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
define INSTALL_recipe
|
define INSTALL_recipe
|
||||||
@ -65,7 +65,7 @@ $1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
|
|||||||
$$($1_OBJS): | ../wrk/$1
|
$$($1_OBJS): | ../wrk/$1
|
||||||
|
|
||||||
../wrk/$1:
|
../wrk/$1:
|
||||||
mkdir -p $$@
|
@mkdir -p $$@
|
||||||
|
|
||||||
DEPS += $$($1_OBJS:.o=.d)
|
DEPS += $$($1_OBJS:.o=.d)
|
||||||
|
|
||||||
@ -87,11 +87,11 @@ endef
|
|||||||
##########
|
##########
|
||||||
|
|
||||||
../wrk/%.o: %.c
|
../wrk/%.o: %.c
|
||||||
@echo $(CC) $<
|
@echo $<
|
||||||
@$(CC) -c $(CFLAGS) -o $@ $<
|
@$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
../bin:
|
../bin:
|
||||||
mkdir $@
|
@mkdir $@
|
||||||
|
|
||||||
$(eval $(call OBJS_template,common))
|
$(eval $(call OBJS_template,common))
|
||||||
../wrk/common/common.a: $(common_OBJS)
|
../wrk/common/common.a: $(common_OBJS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user