summaryrefslogtreecommitdiff
path: root/tools/kconf2h/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-19 16:32:12 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-19 16:32:12 +0000
commit9381ae971066a42ad00def424c29370ced09eb60 (patch)
tree93e69c6920579ef0f499a9c79aab67d9aa1bc474 /tools/kconf2h/Makefile
parent80971b7c44ef1066b6555c5802b1f1d67e20bed2 (diff)
downloadradiola-9381ae971066a42ad00def424c29370ced09eb60.tar.gz
radiola-9381ae971066a42ad00def424c29370ced09eb60.zip
Added menuconfig support. Added default config files for Linux and NetBSD. Added kconf2h tool. Small fixes to README
Diffstat (limited to 'tools/kconf2h/Makefile')
-rw-r--r--tools/kconf2h/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/kconf2h/Makefile b/tools/kconf2h/Makefile
new file mode 100644
index 0000000..b5a42c3
--- /dev/null
+++ b/tools/kconf2h/Makefile
@@ -0,0 +1,20 @@
+PROJECT=kconf2h
+CC=gcc
+CFLAGS=
+SOURCES=$(PROJECT)_parser.c
+OBJECTS=$(SOURCES:.c=.o)
+
+all: clean ragel $(OBJECTS) $(PROJECT)
+
+$(PROJECT):
+ $(CC) $(CFLAGS) $(OBJECTS) $(PROJECT).c -o $(PROJECT)
+
+ragel:
+ ragel $(PROJECT)_parser.ragel
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+clean:
+ rm -f $(PROJECT)
+ rm -f *.o