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
ld-acess - Fixed bugs due to not testing from AcessNative changes
[tpg/acess2.git]
/
Usermode
/
Libraries
/
Makefile.tpl
diff --git
a/Usermode/Libraries/Makefile.tpl
b/Usermode/Libraries/Makefile.tpl
index
709aaac
..
51e404d
100644
(file)
--- a/
Usermode/Libraries/Makefile.tpl
+++ b/
Usermode/Libraries/Makefile.tpl
@@
-1,18
+1,36
@@
-# Acess 2 SQLite 3 Library
+# Acess2
+# - Library Common Makefile
#
#
-.PHONY: all clean install
+DEPFILES := $(addsuffix .d,$(OBJ))
-all: $(BIN)
+_BIN := $(OUTPUTDIR)Libs/$(BIN)
+_XBIN := $(addprefix $(OUTPUTDIR)Libs/,$(EXTRABIN))
+
+.PHONY: all clean install postbuild
+
+all: $(_BIN) $(_XBIN)
clean:
clean:
- $(RM) $(
BIN) $(OBJ
)
+ $(RM) $(
_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES
)
-install:
$(BIN)
- $(xCP) $(BIN) $(DISTROOT)/Libs/
+install:
all
+ $(xCP) $(
_BIN) $(_X
BIN) $(DISTROOT)/Libs/
-$(BIN): $(OBJ)
- $(LD) $(LDFLAGS) -o $(BIN) $(OBJ)
+$(_BIN): $(OBJ)
+ @mkdir -p $(dir $(_BIN))
+ @echo [LD] -o $(BIN) $(OBJ)
+ @$(LD) $(LDFLAGS) -o $(_BIN) $(OBJ)
+ @$(OBJDUMP) -d -S $(_BIN) > $(_BIN).dsm
%.o: %.c
%.o: %.c
- $(CC) $(CFLAGS) -o $@ -c $<
+ @echo [CC] -o $@
+ @$(CC) $(CFLAGS) -o $@ -c $<
+ @$(CC) -M -MT $@ $(CPPFLAGS) $< -o
[email protected]
+
+%.ao: %.asm
+ @echo [AS] -o $@
+ @$(AS) $(ASFLAGS) -o $@ $<
+ @$(AS) $(ASFLAGS) -o $@ $< -M >
[email protected]
+
+-include $(DEPFILES)
UCC
git Repository :: git.ucc.asn.au