CFLAGS = $(shell sdl-config --cflags) -g -Wall LDLIBS = $(shell sdl-config --libs) -g -Wall -lSDL_image OBJECTS = BFont.o serialplot_sdl.o serialplot_io.o serialplot_RdMch.o all: serialplot serialplot: $(OBJECTS) serialplot.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) clean: rm -f serialplot *.o