diff options
Diffstat (limited to 'rotord/Makefile')
| -rw-r--r-- | rotord/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rotord/Makefile b/rotord/Makefile index 41ededb..d7bd454 100644 --- a/rotord/Makefile +++ b/rotord/Makefile @@ -23,11 +23,13 @@ LDFLAGS = # The directories in which source files reside. # If not specified, only the current directory will be serached. -SRCDIRS = +SRCDIRS = src # The executable file name. # If not specified, current directory name or `a.out' will be used. -PROGRAM = +PROGRAM = bin/rotord + +OBJ_OUTPUT = obj/ ## Implicit Section: change the following only when necessary. ##========================================================================== @@ -78,6 +80,7 @@ endif ifeq ($(SRCDIRS),) SRCDIRS = . endif +##mkdir -p $(OBJ_OUTPUT) SOURCES = $(foreach d,$(SRCDIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS)))) HEADERS = $(foreach d,$(SRCDIRS),$(wildcard $(addprefix $(d)/*,$(HDREXTS)))) SRC_CXX = $(filter-out %.c,$(SOURCES)) @@ -210,7 +213,7 @@ endif clean: - $(RM) $(OBJS) $(PROGRAM) $(PROGRAM).exe + $(RM) $(OBJS) $(PROGRAM) $(DEPS) distclean: clean $(RM) $(DEPS) TAGS |
