projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed clang-format and clang_complete files from the repo
[dosdemo]
/
tools
/
img2bin
/
Makefile
diff --git
a/tools/img2bin/Makefile
b/tools/img2bin/Makefile
index
b6e9f4e
..
0763597
100644
(file)
--- a/
tools/img2bin/Makefile
+++ b/
tools/img2bin/Makefile
@@
-3,12
+3,18
@@
bin = img2bin
root = ../..
root = ../..
-CFLAGS = -pedantic -Wall -g -I$(root)/libs/imago/src
-LDFLAGS = -L$(root)/libs/imago -limago -lm
+imagodir = $(root)/libs/imago
+libimago = $(imagodir)/libimago.a
-$(bin): $(obj)
+CFLAGS = -pedantic -Wall -g -I$(imagodir)/src
+LDFLAGS = -L$(imagodir) -limago -lm
+
+$(bin): $(obj) $(libimago)
$(CC) -o $@ $(obj) $(LDFLAGS)
$(CC) -o $@ $(obj) $(LDFLAGS)
+$(libimago):
+ $(MAKE) -C $(imagodir)
+
.PHONY: clean
clean:
rm -f $(obj) $(bin)
.PHONY: clean
clean:
rm -f $(obj) $(bin)