git://git.jankratochvil.net
/
vblib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added very primitive documentation files.
[vblib.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2a0c8c8
..
87cf99a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,10
+1,17
@@
-CFLAGS=-Wall -Wstrict-prototypes -O2
+CFLAGS=-Wall -Wstrict-prototypes -O2 -ggdb
+TARGETS=vbtest
-all: vblib.o
+all: $(TARGETS)
+
+vbtest: vbtest.o vblib.o
+ $(LINK.o) $(OUTPUT_OPTION) $^
+
+vbtest.o: vbtest.c vblib.h
+ $(COMPILE.c) $(OUTPUT_OPTION) $<
vblib.o: vblib.c vblib.h
vblib.o: vblib.c vblib.h
- $(C
C) $(CFLAGS) -o $@
$<
+ $(C
OMPILE.c) $(OUTPUT_OPTION)
$<
.PHONY: clean
clean:
.PHONY: clean
clean:
- $(RM) *.o
+ $(RM) *.o
$(TARGETS)