PREFIX = $(shell pkg-config --variable=prefix gretl) GRETL_CFLAGS = $(shell pkg-config --cflags gretl) CFLAGS = -g -O2 -Wall $(GRETL_CFLAGS) -DPREFIX=\"$(PREFIX)\" LDFLAGS = $(shell pkg-config --libs gretl) OBJECTS = test.o COM = gcc test: $(OBJECTS) $(COM) $(CFLAGS) $(OBJECTS) -o test $(LDFLAGS) all: test clean: rm -f test $(OBJECTS)