Use MODULECC/MODULELD when building modules
This commit is contained in:
parent
779502b4d9
commit
2f7480d11b
@ -80,12 +80,12 @@ all: $(BIN)
|
||||
.PHONY: all clean install
|
||||
|
||||
$(OBJS): %$(OBJEXT): %.c
|
||||
@echo "CC: $<"
|
||||
$(Q) $(CC) -c $(CMODULEFLAGS) $< -o $@
|
||||
@echo "MODULECC: $<"
|
||||
$(Q) $(MODULECC) -c $(CMODULEFLAGS) $< -o $@
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
@echo "LD: $<"
|
||||
$(Q) $(LD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
@echo "MODULELD: $<"
|
||||
$(Q) $(MODULELD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
|
||||
$(FSROOT_DIR)/$(BIN): $(BIN)
|
||||
$(Q) mkdir -p $(FSROOT_DIR)
|
||||
|
@ -77,12 +77,12 @@ all: $(BIN)
|
||||
.PHONY: all clean install
|
||||
|
||||
$(OBJS): %$(OBJEXT): %.c
|
||||
@echo "CC: $<"
|
||||
$(Q) $(CC) -c $(CMODULEFLAGS) $< -o $@
|
||||
@echo "MODULECC: $<"
|
||||
$(Q) $(MODULECC) -c $(CMODULEFLAGS) $< -o $@
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
@echo "LD: $<"
|
||||
$(Q) $(LD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
@echo "MODULELD: $<"
|
||||
$(Q) $(MODULELD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
|
||||
$(FSROOT_DIR)/$(BIN): $(BIN)
|
||||
$(Q) mkdir -p $(FSROOT_DIR)
|
||||
|
@ -77,12 +77,12 @@ all: $(BIN)
|
||||
.PHONY: all clean install
|
||||
|
||||
$(OBJS): %$(OBJEXT): %.c
|
||||
@echo "CC: $<"
|
||||
$(Q) $(CC) -c $(CMODULEFLAGS) $< -o $@
|
||||
@echo "MODULECC: $<"
|
||||
$(Q) $(MODULECC) -c $(CMODULEFLAGS) $< -o $@
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
@echo "LD: $<"
|
||||
$(Q) $(LD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
@echo "MODULELD: $<"
|
||||
$(Q) $(MODULELD) $(LDMODULEFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
|
||||
|
||||
$(FSROOT_DIR)/$(BIN): $(BIN)
|
||||
$(Q) mkdir -p $(FSROOT_DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user