3583026d |
1 | SHELL = /bin/sh |
2 | |
3 | CC = gcc |
4 | |
71e09db9 |
5 | #CFLAGS = -std=c99 -Wall -g -DDEBUG |
6 | CFLAGS = -std=c99 -Wall -g |
3583026d |
7 | |
8 | all: genevent |
9 | |
10 | install: genevent |
11 | cp -f genevent /usr/local/bin |
12 | |
92d82357 |
13 | genevent: genevent.o parser.o |
14 | $(CC) $(CFLAGS) -o $@ $^ |
3583026d |
15 | |
16 | genevent.o: genevent.c genevent.h parser.h |
92d82357 |
17 | $(CC) $(CFLAGS) -c -o $@ $< |
3583026d |
18 | |
19 | parser.o: parser.c parser.h |
92d82357 |
20 | $(CC) $(CFLAGS) -c -o $@ $< |
3583026d |
21 | |
22 | .PHONY: clean |
23 | |
24 | clean: |
25 | rm -rf *.o *~ *# genevent |
26 | |
27 | |