projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debug update
[lttv.git]
/
genevent
/
Makefile
diff --git
a/genevent/Makefile
b/genevent/Makefile
index 7a0d8dcb4d382185137e198c7158d9c644d9e448..5947dc2a1ec14a34811277221fde56a8a21d25b0 100644
(file)
--- a/
genevent/Makefile
+++ b/
genevent/Makefile
@@
-2,20
+2,26
@@
SHELL = /bin/sh
CC = gcc
CC = gcc
-CFLAGS = -g -o
+#CFLAGS = -std=c99 -Wall -g -DDEBUG
+CFLAGS = -std=c99 -Wall -g
all: genevent
all: genevent
-genevent:genevent.o parser.o
- $(CC) $(CFLAGS) $@ genevent.o parser.o
+install: genevent
+ cp -f genevent /usr/local/bin
+
+genevent: genevent.o parser.o
+ $(CC) $(CFLAGS) -o $@ $^
genevent.o: genevent.c genevent.h parser.h
genevent.o: genevent.c genevent.h parser.h
- $(CC)
-g -c genevent.c
+ $(CC)
$(CFLAGS) -c -o $@ $<
parser.o: parser.c parser.h
parser.o: parser.c parser.h
- $(CC) -g -c parser.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+.PHONY: clean
clean:
clean:
- rm -rf *.o *~ *#
+ rm -rf *.o *~ *#
genevent
This page took
0.022858 seconds
and
4
git commands to generate.