CC=gcc LINK=gcc # use gimtool to get the compilerflags INCDIR=`gimptool --cflags` # use gimptool to get linkerflags LDLIBS=`gimptool --libs` OPTFLAGS=-g -O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall DEST=user_filter SRCS=uf_eval.c uf_file.c uf_gui.c uf_lexer.c uf_main.c uf_parser.tab.c OBJS=uf_eval.o uf_file.o uf_gui.o uf_lexer.o uf_main.o uf_parser.tab.o CFLAGS= $(OPTFLAGS) $(DEFINES) $(INCDIR) # add libfl to the libraries LFLAGS= $(LIBDIR) $(LDLIBS) -lfl $(DEST) : $(OBJS) $(LINK) $(CFLAGS) -o $@ $(OBJS) $(LFLAGS) tar: $(DEST) $(SRCS) README INSTALL tar -czvf user_filter-1.0.0.tgz README INSTALL $(DEST) $(SRCS) install: $(DEST) gimptool --install-bin-strip $(DEST) .c.o: $(CC) $(CFLAGS) -c $< uf_parser.tab.c: uf_parser.y bison --defines --verbose uf_parser.y # changed filenames uf_lexer.c: uf_lexer.l uf_parser.tab.c flex -Cem -ouf_lexer.c uf_lexer.l