diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -22,11 +22,13 @@ RAMEN_OBJ := $(RAMEN_SRC:$(RAMEN_DIR)/%.c=$(RAMEN_OBJ_DIR)/%.o) MSG_SRC := $(wildcard $(MSG_DIR)/*.c) MSG_OBJ := $(MSG_SRC:$(MSG_DIR)/%.c=$(MSG_OBJ_DIR)/%.o) +DESTDIR := /usr/local/bin + LDFLAGS := LDLIBS := LDFLAGS += $(NIX_LDFLAGS_COMPILE) -.PHONY: all clean +.PHONY: all clean install all: $(RAMEN_EXE) $(MSG_EXE) @@ -51,4 +53,8 @@ $(BIN_DIR) $(OBJ_DIR) $(MSG_OBJ_DIR) $(RAMEN_OBJ_DIR): clean: @$(RM) -rv $(BIN_DIR) $(OBJ_DIR) $(MSG_OBJ_DIR) $(RAMEN_OBJ_DIR) result +install: + install -m 755 $(BIN_DIR)/ramen $(DESTDIR) + install -mm 755 $(BIN_DIR)/msg $(DESTDIR) + -include $(OBJ:.o=.d) |