Skip to content
Snippets Groups Projects
Commit 64a28098 authored by John Hodge's avatar John Hodge
Browse files

Usermode - Fixed bug with clean builds

parent f8168f41
No related merge requests found
...@@ -104,22 +104,26 @@ $(foreach f,$(ALL_BIN), $(eval $f: $(EXTRA_DEP-$(_DIR-$f)) $(call fcn_getlibs,$f ...@@ -104,22 +104,26 @@ $(foreach f,$(ALL_BIN), $(eval $f: $(EXTRA_DEP-$(_DIR-$f)) $(call fcn_getlibs,$f
%.a: %.a:
$(eval _dir=$(_DIR-$@)) $(eval _dir=$(_DIR-$@))
@echo [AR] ru $@ @echo [AR] ru $@
@mkdir -p $(dir $@)
@$(RM) $@ @$(RM) $@
@$(AR) ru $@ $(OBJ-$@) @$(AR) ru $@ $(OBJ-$@)
# Dynamic Library (.so) # Dynamic Library (.so)
%.so: %.so:
$(eval _dir=$(_DIR-$@)) $(eval _dir=$(_DIR-$@))
@echo [LD] -shared -o $@ @echo [LD] -shared -o $@
@mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -shared -soname $(notdir $@) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir)) @$(LD) $(LDFLAGS) -shared -soname $(notdir $@) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
# Executable (.bin) # Executable (.bin)
%.bin: %.bin:
$(eval _dir=$(_DIR-$@)) $(eval _dir=$(_DIR-$@))
@echo [LD] -o $@ @echo [LD] -o $@
@mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir)) @$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
@$(CP) $@ $(@:%.bin=%) @$(CP) $@ $(@:%.bin=%)
$(OUTPUTDIR)%: $(OUTPUTDIR)%:
$(eval _dir=$(_DIR-$@)) $(eval _dir=$(_DIR-$@))
@echo [LD] -o $@ @echo [LD] -o $@
@mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir)) @$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
-include $(ALL_OBJ:%=%.dep) -include $(ALL_OBJ:%=%.dep)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment