projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Makefile (sdcc-libs): Added makebin to the list of standard targets.
[fw/sdcc]
/
support
/
makebin
/
Makefile
diff --git
a/support/makebin/Makefile
b/support/makebin/Makefile
index 481910c79302350c4b2464afbe5246047a8810c2..6de6460044c056c889e0152343a354c0376e0407 100644
(file)
--- a/
support/makebin/Makefile
+++ b/
support/makebin/Makefile
@@
-1,10
+1,16
@@
-BIN = makebin
-OBJ = makebin.o
+PRJDIR = ../..
+
+SOURCES = makebin.c
+BIN = $(PRJDIR)/bin/makebin
+
+include $(PRJDIR)/Makefile.common
all: $(BIN)
all: $(BIN)
-clean:
- rm -f $(BIN) $(OBJ) *~
+$(BIN): $(OBJ)
+ $(CC) -o $(BIN) $(OBJ)
install: all
install: all
- install --strip $(BIN) /usr/bin
\ No newline at end of file
+ $(INSTALL) $(BIN) `echo $(bindir)/makebin|sed '$(transform)'`
+
+include clean.mk