CC=gcc CFLAGS=-Wall `pkg-config --cflags cairo sdl` -I../../../libkhepctrl/src/ -g LDFLAGS=`pkg-config --libs cairo sdl` -L../../../libkhepctrl/src/.libs -lkhepctrl SOURCES=render.c khepcc.c events.c display.c sensors.c commands.c OBJS=$(SOURCES:.c=.o) .PHONY: all khepcc clean all: khepcc khepcc: $(OBJS) $(CC) $(LDFLAGS) -o $@ $^ %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -f $(OBJS)