git.samba.org
/
samba.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
this is a awk based code generator. Very primitive at the moment, but
[samba.git]
/
source3
/
aparser
/
Makefile
1
CFLAGS=-Wall -g
2
CC=gcc
3
4
%.h : %.struct
5
awk -f parser.awk < $*.struct > $*.h
6
7
OBJ = harness.o parser.o
8
9
all: test.h harness
10
11
test.h : test.struct
12
13
harness: test.h $(OBJ)
14
$(CC) $(CFLAGS) -o harness $(OBJ)
15
16
clean:
17
rm -f *.o test.h
18
19
test: harness
20
./harness test.dat > test.out