diff options
Diffstat (limited to 'bin/Makefile')
-rw-r--r-- | bin/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile new file mode 100644 index 0000000..dfac31e --- /dev/null +++ b/bin/Makefile @@ -0,0 +1,37 @@ +#! /usr/bin/make -f + +# dependencies + +OBJS = \ + $(TMP_DIR)/main.o + +ALL = $(BIN_NAME) size + + +# target: dependencies +# action + +PHONY := all +all: $(ALL) + + +$(BIN_NAME): $(OBJS) + @echo " CXX $@" + $(Q)$(CXX) $(OBJS) -o $@ $(LIBS) + +size: $(BIN_NAME) + @echo " SZ $(BIN_NAME)" + $(Q)$(SZ) $(BIN_NAME) + + +clean: + @echo " RM $(ALL)" + $(Q)rm -f $(ALL) + +################################################################################ +# Declare the contents of the .PHONY variable as phony. +.PHONY: $(PHONY) + +################################################################################ +######## End of file ########################################################### +################################################################################ |