diff options
Diffstat (limited to 'rbutil/mkmpioboot/Makefile')
-rw-r--r-- | rbutil/mkmpioboot/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/rbutil/mkmpioboot/Makefile b/rbutil/mkmpioboot/Makefile index 5e138b6f12..8077bdceb6 100644 --- a/rbutil/mkmpioboot/Makefile +++ b/rbutil/mkmpioboot/Makefile | |||
@@ -1,3 +1,9 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
1 | 7 | ||
2 | #change for releases | 8 | #change for releases |
3 | ifndef APPVERSION | 9 | ifndef APPVERSION |
@@ -33,6 +39,7 @@ else | |||
33 | OBJDIR = $(TARGET_DIR)build/ | 39 | OBJDIR = $(TARGET_DIR)build/ |
34 | endif | 40 | endif |
35 | 41 | ||
42 | TARGET_DIR ?= $(shell pwd) | ||
36 | 43 | ||
37 | all: $(OUTPUT) | 44 | all: $(OUTPUT) |
38 | 45 | ||
@@ -52,9 +59,11 @@ $(OBJDIR)%.o: %.c | |||
52 | $(SILENT)mkdir -p $(dir $@) | 59 | $(SILENT)mkdir -p $(dir $@) |
53 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< | 60 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< |
54 | 61 | ||
55 | libmkmpioboot$(RBARCH).a: $(LIBOBJS) | 62 | libmkmpioboot$(RBARCH).a: $(TARGET_DIR)libmkmpioboot$(RBARCH).a |
56 | @echo AR $@ | 63 | |
57 | $(SILENT)$(AR) rucs $(TARGET_DIR)$@ $^ | 64 | $(TARGET_DIR)libmkmpioboot$(RBARCH).a: $(LIBOBJS) |
65 | @echo AR $(notdir $@) | ||
66 | $(SILENT)$(AR) rucs $@ $^ | ||
58 | 67 | ||
59 | # building the standalone executable | 68 | # building the standalone executable |
60 | $(OUTPUT): $(OBJS) $(EXTRADEPS) | 69 | $(OUTPUT): $(OBJS) $(EXTRADEPS) |
@@ -68,7 +77,7 @@ $(TARGET_DIR)libmkmpiobooti386.a: | |||
68 | 77 | ||
69 | $(TARGET_DIR)libmkmpiobootppc.a: | 78 | $(TARGET_DIR)libmkmpiobootppc.a: |
70 | make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkmpiobootppc.a | 79 | make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkmpiobootppc.a |
71 | endif | 80 | endif |
72 | 81 | ||
73 | libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpiobootppc.a | 82 | libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpiobootppc.a |
74 | @echo lipo $(TARGET_DIR)libmkmpioboot.a | 83 | @echo lipo $(TARGET_DIR)libmkmpioboot.a |