From 77fe6091096d7bf1a73f600cbe8f90c702583ef3 Mon Sep 17 00:00:00 2001 From: Artur Artamonov Date: Thu, 13 Mar 2014 13:19:24 +0200 Subject: Initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b5a42c3 --- /dev/null +++ b/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 -- cgit v1.2.3