summaryrefslogtreecommitdiff
path: root/source3/aparser/Makefile
blob: e74e99de18f3591ffb176d8f53fe84c73707caf1 (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 = vluke.o parser.o

all: test.h vluke

test.h : test.struct

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

clean:
	rm -f *.o test.h

test: vluke
	./vluke test.dat > test.out