summaryrefslogtreecommitdiff
path: root/source3/aparser/Makefile
blob: d08807109097ac390fd2afefe7c8f589056ed2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-Wall -g
CC=gcc

%.h : %.struct
	igawk -f parser.awk < $*.struct > $*.h

OBJ = harness.o parser.o

all: test.h harness

test.h : test.struct

harness: test.h $(OBJ) 
	$(CC) $(CFLAGS) -o harness $(OBJ)

clean:
	rm -f *.o test.h

test: harness
	./harness test.dat > test.out