NAME := macros SRC_DIR := src SRCS := main.c event.c read_events.c read_file.c OBJS := main.o event.o read_events.o read_file.o CC := gcc CFLAGS := -Wall -g -I. #CFLAGS := -Wall -ansi -g -I. LDLIBS := -lxdo -lX11 all: $(NAME) $(NAME): $(OBJS) $(CC) $(OBJS) $(LDLIBS) -o $(NAME) %.o: $(SRC_DIR)/%.c $(CC) -I$(CFLAGS) -c -o $@ $< clean: rm $(OBJS)