summaryrefslogtreecommitdiff
path: root/source3/aparser/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/Makefile')
-rw-r--r--source3/aparser/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/aparser/Makefile b/source3/aparser/Makefile
new file mode 100644
index 0000000000..e9ff8ad010
--- /dev/null
+++ b/source3/aparser/Makefile
@@ -0,0 +1,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