git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/ld-acess - PTY 2D commands
[tpg/acess2.git]
/
Usermode
/
rules.mk
diff --git
a/Usermode/rules.mk
b/Usermode/rules.mk
index
4185287
..
123954a
100644
(file)
--- a/
Usermode/rules.mk
+++ b/
Usermode/rules.mk
@@
-104,22
+104,26
@@
$(foreach f,$(ALL_BIN), $(eval $f: $(EXTRA_DEP-$(_DIR-$f)) $(call fcn_getlibs,$f
%.a:
$(eval _dir=$(_DIR-$@))
@echo [AR] ru $@
%.a:
$(eval _dir=$(_DIR-$@))
@echo [AR] ru $@
+ @mkdir -p $(dir $@)
@$(RM) $@
@$(AR) ru $@ $(OBJ-$@)
# Dynamic Library (.so)
%.so:
$(eval _dir=$(_DIR-$@))
@echo [LD] -shared -o $@
@$(RM) $@
@$(AR) ru $@ $(OBJ-$@)
# Dynamic Library (.so)
%.so:
$(eval _dir=$(_DIR-$@))
@echo [LD] -shared -o $@
+ @mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -shared -soname $(notdir $@) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
# Executable (.bin)
%.bin:
$(eval _dir=$(_DIR-$@))
@echo [LD] -o $@
@$(LD) $(LDFLAGS) -shared -soname $(notdir $@) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
# Executable (.bin)
%.bin:
$(eval _dir=$(_DIR-$@))
@echo [LD] -o $@
+ @mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
@$(CP) $@ $(@:%.bin=%)
$(OUTPUTDIR)%:
$(eval _dir=$(_DIR-$@))
@echo [LD] -o $@
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
@$(CP) $@ $(@:%.bin=%)
$(OUTPUTDIR)%:
$(eval _dir=$(_DIR-$@))
@echo [LD] -o $@
+ @mkdir -p $(dir $@)
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
-include $(ALL_OBJ:%=%.dep)
@$(LD) $(LDFLAGS) -o $@ $(OBJ-$@) $(LDFLAGS-$(_dir))
-include $(ALL_OBJ:%=%.dep)
UCC
git Repository :: git.ucc.asn.au