projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EXEEXT introduces to solve Cygwin problems
[fw/sdcc]
/
support
/
makebin
/
Makefile
diff --git
a/support/makebin/Makefile
b/support/makebin/Makefile
index 481910c79302350c4b2464afbe5246047a8810c2..66e49b30858715328d7494214e6b6a4cb4e5bde7 100644
(file)
--- a/
support/makebin/Makefile
+++ b/
support/makebin/Makefile
@@
-1,10
+1,21
@@
-BIN = makebin
-OBJ = makebin.o
+PRJDIR = ../..
+
+SOURCES = makebin.c
+BIN = $(PRJDIR)/bin/makebin$(EXEEXT)
+
+include $(PRJDIR)/Makefile.common
all: $(BIN)
all: $(BIN)
-clean:
- rm -f $(BIN) $(OBJ) *~
+$(BIN): $(OBJ)
+ $(CC) $(LDFLAGS) -o $(BIN) $(OBJ)
install: all
install: all
- install --strip $(BIN) /usr/bin
\ No newline at end of file
+ mkdir -p $(bindir)
+ $(INSTALL) $(BIN) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'`
+ $(STRIP) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'`
+
+uninstall:
+ rm -f $(bindir)/makebin$(EXEEXT)
+
+include clean.mk