summaryrefslogtreecommitdiff
path: root/source3/aparser/Makefile
blob: e9ff8ad0104c37eb310eb42236ff47a89d9e7b39 (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
	awk -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