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
Bugfix in NE2K driver (didn't wait for the DMA to be ready)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
Makefile.tpl
diff --git
a/Usermode/Libraries/Makefile.tpl
b/Usermode/Libraries/Makefile.tpl
index
b501b7d
..
ccae9ca
100644
(file)
--- a/
Usermode/Libraries/Makefile.tpl
+++ b/
Usermode/Libraries/Makefile.tpl
@@
-1,19
+1,37
@@
-# 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) $(BIN).dsm
+ $(RM) $(
_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES)
-install: $(BIN)
- $(xCP) $(BIN) $(DISTROOT)/Libs/
+install: all
+ @$(xMKDIR) $(DISTROOT)/Libs; true
+ $(xCP) $(_BIN) $(_XBIN) $(DISTROOT)/Libs/
-$(BIN): $(OBJ)
- $(LD) $(LDFLAGS) -o $(BIN) $(OBJ)
- @$(OBJDUMP) -d -S $(BIN) > $(BIN).dsm
+$(_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